From b6a742ef5de4d1e9c463b2c12a24ebfd798381dc Mon Sep 17 00:00:00 2001 From: Mateusz Faderewski Date: Thu, 27 Jun 2024 21:10:27 +0200 Subject: [PATCH] test builder --- .github/workflows/build.yml | 42 +++++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bc16f03..6819dc3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -52,26 +52,27 @@ jobs: build-deployer: strategy: matrix: - version: [windows, windows-32bit, linux, macos] + # version: [windows, windows-32bit, linux, macos] + version: [linux, macos] include: - - version: windows - os: windows-latest - executable: target/release/sc64deployer.exe - package-name: sc64-deployer-windows - package-params: -c -a -f - package-extension: zip + # - version: windows + # os: windows-latest + # executable: target/release/sc64deployer.exe + # package-name: sc64-deployer-windows + # package-params: -c -a -f + # package-extension: zip - - 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: 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 + apt-packages: libftdi-dev libudev-dev executable: target/release/sc64deployer package-name: sc64-deployer-linux package-params: -czf @@ -79,6 +80,7 @@ jobs: - version: macos os: macos-latest + brew-packages: libftdi executable: target/release/sc64deployer package-name: sc64-deployer-macos package-params: -czf @@ -98,11 +100,15 @@ jobs: string: '${{ github.ref_name }}' replace-with: '-' - - name: Install linux packages - if: matrix.linux-packages + - name: Install apt packages + if: matrix.apt-packages run: | sudo apt-get update - sudo apt-get -y install ${{ matrix.linux-packages }} + sudo apt-get -y install ${{ matrix.apt-packages }} + + - name: Install brew packages + if: matrix.brew-packages + run: yes | brew install ${{ matrix.brew-packages }} - name: Build deployer run: cargo b -r ${{ matrix.build-params }}