Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various fixes #15

Merged
merged 43 commits into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
f898199
fill eeprom backup filename
AKuHAK Oct 14, 2023
0d0f985
Add timestamp into log files
AKuHAK Oct 14, 2023
2d98261
Add cfd and cfc into filename
AKuHAK Oct 14, 2023
502baee
Added macos test build
AKuHAK Oct 14, 2023
e780913
Skip some errors on slim models
AKuHAK Oct 15, 2023
46a7199
Initial ID support
AKuHAK Oct 15, 2023
7c59852
Fix windows build, hardcode Id_Mangament for now
AKuHAK Oct 16, 2023
b7c15a9
MacOS fixed and working now
AKuHAK Oct 29, 2023
711b27a
test linux
AKuHAK Oct 29, 2023
46db410
small warnings fixed
AKuHAK Oct 30, 2023
b122fca
Moved pmap main into common files
AKuHAK Oct 31, 2023
2fdf8ee
create unified unix structure
AKuHAK Oct 31, 2023
ede67e6
rename win build
AKuHAK Oct 31, 2023
663d11d
rename gui folder
AKuHAK Oct 31, 2023
c832370
add com port list for win build
AKuHAK Oct 31, 2023
119af77
warning fix
AKuHAK Oct 31, 2023
e883701
more unified codebase
AKuHAK Oct 31, 2023
41e5005
fix win gui build
AKuHAK Oct 31, 2023
bf289b4
fix com port list
AKuHAK Oct 31, 2023
c2b638b
attempt 2 to fix com port listing
AKuHAK Oct 31, 2023
dc135a9
Somu gui improvements
AKuHAK Oct 31, 2023
8d3ecac
ffix ID gui
AKuHAK Oct 31, 2023
db4db6c
Csome fixes
AKuHAK Oct 31, 2023
188de67
Minimal changes
AKuHAK Nov 1, 2023
392cd4b
GUI: fix aligment and cfd/cfc
AKuHAK Nov 2, 2023
0368313
GUI: fix aligment
AKuHAK Nov 2, 2023
a2f7a22
Fix cancel button
AKuHAK Nov 2, 2023
f4f8121
few fixes
AKuHAK Nov 2, 2023
976a831
GUI: Fix message handling. Enable ELEC tool
AKuHAK Nov 5, 2023
2f1fe6e
Some fixes for Auto Elec for slims
AKuHAK Nov 5, 2023
dfed338
bump action
AKuHAK Mar 1, 2024
a0f4b2c
Update compilation.yml
AKuHAK Mar 1, 2024
c0d52e5
Merge pull request #1 from AKuHAK/macos
AKuHAK Jul 1, 2024
4d22f63
Hack for slim models
AKuHAK Jul 1, 2024
5e6adcf
Update workflow file
AKuHAK Jul 1, 2024
ea827a3
revert experimental value
AKuHAK Jul 8, 2024
ff6d49f
remove linux folder, now linux and macos compiles from unix folder
AKuHAK Jul 8, 2024
2d9f09b
some code fixes
AKuHAK Jul 8, 2024
c523d10
Makefile improved
AKuHAK Jul 8, 2024
39a5c35
get rid of sprintf
AKuHAK Jul 8, 2024
8c4e7fb
fix segfault for garbage data
AKuHAK Jul 8, 2024
a001b0c
replace printf with PlatShowMessage
AKuHAK Jul 8, 2024
9779a91
Win fix for charactr output
AKuHAK Jul 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
122 changes: 93 additions & 29 deletions .github/workflows/compilation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,57 +11,121 @@ jobs:

steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup msbuild
uses: microsoft/setup-msbuild@v1.1
uses: microsoft/setup-msbuild@v2

- name: Build
run: msbuild /p:PlatformToolset=v142 /p:Configuration=Release

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: PMAP.exe
name: PMAP-wincli
path: Release/PMAP.exe

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: PMAP-win.exe
name: PMAP-wingui
path: Release/PMAP-win.exe

- name: Create release
build-macos:
name: PMAP macos compilation
runs-on: macos-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Build
run: |
cd PMAP-unix
make
tar -zcvf PMAP-macos.tar.gz pmap

- name: Build id
run: |
cd PMAP-unix
make clean
make ID_MANAGEMENT=1
tar -zcvf PMAP-macos-id.tar.gz pmap

- uses: actions/upload-artifact@v4
with:
name: PMAP-macos
path: PMAP-unix/PMAP-macos.tar.gz

- uses: actions/upload-artifact@v4
with:
name: PMAP-macos-id
path: PMAP-unix/PMAP-macos-id.tar.gz

build-linux:
name: PMAP linux compilation
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Build
run: |
cd PMAP-unix
make
tar -zcvf PMAP-linux.tar.gz pmap

- name: Build id
run: |
cd PMAP-unix
make clean
make ID_MANAGEMENT=1
tar -zcvf PMAP-linux-id.tar.gz pmap

- uses: actions/upload-artifact@v4
with:
name: PMAP-linux
path: PMAP-unix/PMAP-linux.tar.gz

- uses: actions/upload-artifact@v4
with:
name: PMAP-linux-id
path: PMAP-unix/PMAP-linux-id.tar.gz

create-release:
name: Create release
runs-on: ubuntu-latest
needs: [build-win, build-macos, build-linux]
steps:
- uses: actions/download-artifact@v4
- name: Display structure of downloaded files
run: ls -R

- name: Create release for master/main
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
title: "Latest development build"
files: Release/PMAP.exe
files: |
./PMAP-wincli/PMAP.exe
./PMAP-wingui/PMAP-win.exe
./PMAP-macos/PMAP-macos.tar.gz
./PMAP-macos-id/PMAP-macos-id.tar.gz
./PMAP-linux/PMAP-linux.tar.gz
./PMAP-linux-id/PMAP-linux-id.tar.gz

- name: Create release
- name: Create release for tagged versions
if: startsWith(github.ref, 'refs/tags/v')
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: "${{ contains(github.ref, '-rc') }}"
title: PMAP-${{ github.ref }}
files: Release/PMAP.exe

# build-linux:
# name: PMAP linux compilation
# runs-on: ubuntu-latest

# steps:
# - name: Checkout Repository
# uses: actions/checkout@v3

# - name: Build
# run: |
# cd PMAP-linux
# make
# tar -zcvf pmap.tar.gz pmap

# - uses: actions/upload-artifact@v3
# with:
# name: PMAP
# path: linux/pmap.tar.gz
files: |
./release/win/PMAP.exe
./release/win/PMAP-win.exe
./release/macos/PMAP-macos.tar.gz
./release/macos/PMAP-macos-id.tar.gz
./release/linux/PMAP-linux.tar.gz
./release/linux/PMAP-linux-id.tar.gz
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
.vs
Debug
Release
PMAP-unix/pmap
PMAP-linux/pmap

!.github
!.editorconfig
Expand Down
13 changes: 0 additions & 13 deletions PMAP-linux/Makefile

This file was deleted.

135 changes: 0 additions & 135 deletions PMAP-linux/platform-linux.c

This file was deleted.

19 changes: 0 additions & 19 deletions PMAP-linux/platform.h

This file was deleted.

18 changes: 18 additions & 0 deletions PMAP-unix/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
VPATH = ./:../base/

ELF = pmap
CFLAGS ?= -O2
CPPFLAGS = -I.
OBJS += eeprom-main.o eeprom.o elect.o elect-main.o mecha-main.o mecha.o updates.o platform-unix.o
OBJS += main.o
# Add -DID_MANAGEMENT when ID_MANAGEMENT is defined
ifdef ID_MANAGEMENT
CPPFLAGS += -DID_MANAGEMENT
OBJS += eeprom-id.o id-main.o
endif

$(ELF): $(OBJS)
$(CC) -o $(ELF) $(OBJS)

clean:
rm -f $(ELF) $(OBJS) eeprom-id.o id-main.o
Loading