2929 # name: Cross-Build for FreeBSD
3030 # runs-on: 'ubuntu-22.04'
3131 # steps:
32- # - uses: actions/checkout@v3
32+ # - uses: actions/checkout@v4
3333
3434 # - name: Setup Rust toolchain
3535 # run: rustup show
4141 # run: cross build --target=x86_64-unknown-freebsd
4242
4343 # - name: Upload FreeBSD App
44- # uses: actions/upload-artifact@v3
44+ # uses: actions/upload-artifact@v4
4545 # with:
4646 # name: qmk_hid_freebsd
4747 # path: target/x86_64-unknown-freebsd/debug/qmk_hid
5050 name : Build Linux
5151 runs-on : ubuntu-22.04
5252 steps :
53- - uses : actions/checkout@v3
53+ - uses : actions/checkout@v4
5454
5555 - name : Install dependencies
5656 run : |
6969 run : cargo make --cwd inputmodule-control run -- --help | grep 'RAW HID and VIA commandline'
7070
7171 - name : Upload Linux tool
72- uses : actions/upload-artifact@v3
72+ uses : actions/upload-artifact@v4
7373 with :
7474 name : inputmodule-control
7575 path : target/x86_64-unknown-linux-gnu/release/inputmodule-control
7878 name : Build Windows
7979 runs-on : windows-2022
8080 steps :
81- - uses : actions/checkout@v3
81+ - uses : actions/checkout@v4
8282
8383 - name : Setup Rust toolchain
8484 run : rustup show
9292 run : cargo make --cwd inputmodule-control run -- --help | grep 'RAW HID and VIA commandline'
9393
9494 - name : Upload Windows App
95- uses : actions/upload-artifact@v3
95+ uses : actions/upload-artifact@v4
9696 with :
9797 name : inputmodule-control.exe
9898 path : target/x86_64-pc-windows-msvc/release/inputmodule-control.exe
@@ -103,22 +103,30 @@ jobs:
103103 name : Build GUI
104104 runs-on : windows-latest
105105 steps :
106- - uses : actions/checkout@v3
106+ - uses : actions/checkout@v4
107107
108+ - name : Download releases to bundle
109+ run : |
110+ mkdir releases
111+ mkdir releases\0.2.0
112+ Invoke-WebRequest -Uri https://github.com/FrameworkComputer/inputmodule-rs/releases/download/v0.2.0/ledmatrix.uf2 -OutFile releases\0.2.0\ledmatrix.uf2
113+
114+ # To run locally, need to make sure to include the pywin32 DLL
115+ # pyinstaller --onefile, --name "python/inputmodule/cli.py", --windowed, --add-data "releases;releases" --icon=res\framework_startmenuicon.ico --path C:\users\skype\appdata\local\packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\localcache\local-packages\Python312\site-packages\pywin32_system32 --add-data 'res;res' -p python/inputmodule python/inputmodule/cli.py
108116 - name : Create Executable
109- uses : Martin005 /pyinstaller-action@main
117+ uses : JohnAZoidberg /pyinstaller-action@dont-clean
110118 with :
111- python_ver : ' 3.11 '
119+ python_ver : ' 3.12 '
112120 spec : python/inputmodule/cli.py # 'src/build.spec'
113- requirements : ' requirements.txt'
114- upload_exe_with_name : ' ledmatrixgui'
115- options : --onefile, --windowed, --add-data 'res;res'
121+ requirements : ' python/ requirements.txt'
122+ upload_exe_with_name : ' ledmatrixgui.exe '
123+ options : --onefile, --name "ledmatrixgui", -- windowed, --add-data "releases;releases" --icon=res/framework_startmenuicon.ico --add-data 'res;res' -p python/inputmodule
116124
117125 package-python :
118126 name : Package Python
119127 runs-on : ubuntu-22.04
120128 steps :
121- - uses : actions/checkout@v3
129+ - uses : actions/checkout@v4
122130
123131 - run : |
124132 cd python
@@ -131,7 +139,7 @@ jobs:
131139 name : Lints
132140 runs-on : ubuntu-22.04
133141 steps :
134- - uses : actions/checkout@v3
142+ - uses : actions/checkout@v4
135143
136144 - name : Install dependencies
137145 run : |
0 commit comments