From e83a0c95e7950aa7fe507b7f2040f56f2691de37 Mon Sep 17 00:00:00 2001 From: Tom Kirkpatrick Date: Sat, 6 Apr 2024 18:18:09 +0200 Subject: [PATCH] Run mac builds on mac os --- .github/workflows/release.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a02fa67..8d60134 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,27 +6,28 @@ on: jobs: release: - runs-on: ubuntu-latest + runs-on: ${{ matrix.platform }} strategy: matrix: - platform: [linux, osx] + os: [ubuntu-latest, macos-latest] steps: - name: Checkout code uses: actions/checkout@v4 - - name: Build linux image - run: docker run --rm -v "${PWD}:/src/" --env SPECFILE=./schwifty.spec batonogov/pyinstaller-${{ matrix.platform }} + - name: Build + run: docker run --rm -v "${PWD}:/src/" --env SPECFILE=./schwifty.spec batonogov/pyinstaller-${{ matrix.os == 'ubuntu-latest' && 'linux' || 'osx' }} - - name: Test linux image + - name: Test run: dist/schwifty "DE89370400440532013000" - name: Compress binary - run: tar -czvf schwifty-${{ matrix.platform }}.tar.gz -C dist/ schwifty + run: tar -czvf schwifty.tar.gz -C dist/ schwifty - - uses: shogo82148/actions-upload-release-asset@v1 + - name: Upload release asset + uses: shogo82148/actions-upload-release-asset@v1 with: upload_url: ${{ github.event.release.upload_url }} - asset_path: ./schwifty-${{ matrix.platform }}.tar.gz - asset_name: schwifty-${{ matrix.platform }}.tar.gz + asset_path: ./schwifty.tar.gz + asset_name: schwifty-${{ matrix.os == 'ubuntu-latest' && 'linux' || 'macos' }}.tar.gz asset_content_type: application/gzip \ No newline at end of file