From 73b1118e6ac210d7ad9310b78ff02112414b4ce4 Mon Sep 17 00:00:00 2001 From: Tom Kirkpatrick Date: Sat, 6 Apr 2024 18:38:13 +0200 Subject: [PATCH] Builds osx binary on osx using devenv --- .github/workflows/release.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1f8132b..88f7c3a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,16 +16,29 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Build binary + # Linux + - name: Build binary (linux/windows) if: matrix.platform == 'linux' || matrix.platform == 'windows' run: docker run --rm -v "${PWD}:/src/" --env SPECFILE=./schwifty.spec batonogov/pyinstaller-${{ matrix.platform }} - - name: Build binary (macos) - uses: devcontainers/ci@v0.3 + # Macos + - uses: cachix/install-nix-action@v26 + if: matrix.platform == 'osx' + + - uses: cachix/cachix-action@v14 if: matrix.platform == 'osx' with: - runCmd: devenv test + name: devenv + + - name: Install devenv.sh + if: matrix.platform == 'osx' + run: nix profile install nixpkgs#devenv + + - name: Build binary (macos) + if: matrix.platform == 'osx' + run: devenv test + # Finalize - name: Test binary run: dist/schwifty "DE89370400440532013000"