From 58862e68cb2bbe7e04c1d0d6d570dcface4aa317 Mon Sep 17 00:00:00 2001 From: Mike Almeloo Date: Sat, 28 Oct 2023 16:32:21 +0200 Subject: [PATCH 1/3] Force global package installation when building --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f0819e5..e7551db 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,9 +19,9 @@ jobs: with: python-version: '3.11' - name: Install requirements with PIP - run: pip install -r requirements.txt + run: pip install --break-system-packages -r requirements.txt - name: Install pyinstaller - run: pip install pyinstaller + run: pip install --break-system-packages pyinstaller - name: Build RiiTag RPC run: pyinstaller riitag-rpc.spec - name: Publish Build Artifacts @@ -52,8 +52,8 @@ jobs: commands: | sudo apt-get update sudo apt-get install -y python3-pip - pip3 install -r requirements.txt - pip3 install pyinstaller + pip3 install --break-system-packages -r requirements.txt + pip3 install --break-system-packages pyinstaller pyinstaller riitag-rpc.spec - name: Publish Build Artifacts uses: actions/upload-artifact@master From 441b74b3b15c812a05e5996b9d373c053a36e714 Mon Sep 17 00:00:00 2001 From: Mike Almeloo Date: Sat, 28 Oct 2023 16:41:11 +0200 Subject: [PATCH 2/3] Mark built artifacts as executable on non-windows systems --- .github/workflows/build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e7551db..79f9154 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,6 +8,7 @@ jobs: Build-PC: runs-on: ${{ matrix.os }} strategy: + fail-fast: false matrix: os: [windows-2022, ubuntu-22.04, ubuntu-20.04, macos-12] @@ -24,6 +25,9 @@ jobs: run: pip install --break-system-packages pyinstaller - name: Build RiiTag RPC run: pyinstaller riitag-rpc.spec + - name: Mark as executable + if: ${{ matrix.os != 'windows-2022' }} + run: chmod -R +x dist/ - name: Publish Build Artifacts uses: actions/upload-artifact@master with: @@ -55,6 +59,7 @@ jobs: pip3 install --break-system-packages -r requirements.txt pip3 install --break-system-packages pyinstaller pyinstaller riitag-rpc.spec + chmod +x -R dist/ - name: Publish Build Artifacts uses: actions/upload-artifact@master with: From f9c707988cbbbc1c52e02eaef7ba9ca65343980e Mon Sep 17 00:00:00 2001 From: Mike A Date: Sat, 28 Oct 2023 17:55:33 +0200 Subject: [PATCH 3/3] Update actions cache