mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2024-11-22 05:59:15 +01:00
[SC64][SW] Add Windows 32-bit build for sc64deployer (#60)
This commit is contained in:
parent
c14da52f46
commit
3ed1ad4d73
58
.github/workflows/build.yml
vendored
58
.github/workflows/build.yml
vendored
@ -52,26 +52,37 @@ jobs:
|
|||||||
build-deployer:
|
build-deployer:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [windows-latest, ubuntu-latest, macos-latest]
|
version: [windows, windows-32bit, linux, macos]
|
||||||
include:
|
include:
|
||||||
- os: windows-latest
|
- version: windows
|
||||||
executable: sc64deployer.exe
|
os: windows-latest
|
||||||
name: sc64-deployer-windows
|
executable: target/release/sc64deployer.exe
|
||||||
options: -c -a -f
|
package-name: sc64-deployer-windows
|
||||||
extension: zip
|
package-params: -c -a -f
|
||||||
|
package-extension: zip
|
||||||
|
|
||||||
- os: ubuntu-latest
|
- version: windows-32bit
|
||||||
|
os: windows-latest
|
||||||
|
build-params: --target=i686-pc-windows-msvc
|
||||||
|
executable: target/i686-pc-windows-msvc/release/sc64deployer.exe
|
||||||
|
package-name: sc64-deployer-windows-32bit
|
||||||
|
package-params: -c -a -f
|
||||||
|
package-extension: zip
|
||||||
|
|
||||||
|
- version: linux
|
||||||
|
os: ubuntu-latest
|
||||||
linux-packages: libudev-dev
|
linux-packages: libudev-dev
|
||||||
executable: sc64deployer
|
executable: target/release/sc64deployer
|
||||||
name: sc64-deployer-linux
|
package-name: sc64-deployer-linux
|
||||||
options: -czf
|
package-params: -czf
|
||||||
extension: tar.gz
|
package-extension: tar.gz
|
||||||
|
|
||||||
- os: macos-latest
|
- version: macos
|
||||||
executable: sc64deployer
|
os: macos-latest
|
||||||
name: sc64-deployer-macos
|
executable: target/release/sc64deployer
|
||||||
options: -czf
|
package-name: sc64-deployer-macos
|
||||||
extension: tgz
|
package-params: -czf
|
||||||
|
package-extension: tgz
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
@ -94,25 +105,26 @@ jobs:
|
|||||||
sudo apt-get -y install ${{ matrix.linux-packages }}
|
sudo apt-get -y install ${{ matrix.linux-packages }}
|
||||||
|
|
||||||
- name: Build deployer
|
- name: Build deployer
|
||||||
run: cargo b -r
|
run: cargo b -r ${{ matrix.build-params }}
|
||||||
working-directory: sw/deployer
|
working-directory: sw/deployer
|
||||||
|
|
||||||
- name: Package executable
|
- name: Package executable
|
||||||
run: |
|
run: |
|
||||||
mkdir package
|
mkdir -p ./package
|
||||||
cd target/release
|
cp ${{ matrix.executable }} ./package/
|
||||||
tar ${{ matrix.options }} ../../package/${{ matrix.name }}-${{ steps.version.outputs.replaced }}.${{ matrix.extension }} ${{ matrix.executable }}
|
cd ./package
|
||||||
|
tar ${{ matrix.package-params }} ./${{ matrix.package-name }}-${{ steps.version.outputs.replaced }}.${{ matrix.package-extension }} *
|
||||||
working-directory: sw/deployer
|
working-directory: sw/deployer
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.name }}-${{ steps.version.outputs.replaced }}
|
name: ${{ matrix.package-name }}-${{ steps.version.outputs.replaced }}
|
||||||
path: sw/deployer/package/${{ matrix.name }}-${{ steps.version.outputs.replaced }}.${{ matrix.extension }}
|
path: sw/deployer/package/${{ matrix.package-name }}-${{ steps.version.outputs.replaced }}.${{ matrix.package-extension }}
|
||||||
|
|
||||||
- name: Upload release assets
|
- name: Upload release assets
|
||||||
if: github.event_name == 'release' && github.event.action == 'created'
|
if: github.event_name == 'release' && github.event.action == 'created'
|
||||||
uses: softprops/action-gh-release@v0.1.15
|
uses: softprops/action-gh-release@v0.1.15
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
sw/deployer/package/${{ matrix.name }}-${{ steps.version.outputs.replaced }}.${{ matrix.extension }}
|
sw/deployer/package/${{ matrix.package-name }}-${{ steps.version.outputs.replaced }}.${{ matrix.package-extension }}
|
||||||
|
Loading…
Reference in New Issue
Block a user