Skip to content

Commit 20b4247

Browse files
authored
Merge pull request #1536 from maurosoria/codex/add-nuitka-version-of-workflows-917k1y
Handle Nuitka output name differences in Unix workflows
2 parents 9e52005 + a7db396 commit 20b4247

3 files changed

Lines changed: 29 additions & 8 deletions

File tree

.github/workflows/nuitka-linux.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,15 @@ jobs:
6363
- name: Rename binary
6464
run: |
6565
mkdir -p dist
66-
mv dirsearch.bin dist/dirsearch-linux-amd64-${{ matrix.variant.name }}
67-
66+
if [ -f dirsearch ]; then
67+
mv dirsearch dist/dirsearch-linux-amd64-${{ matrix.variant.name }}
68+
elif [ -f dirsearch.bin ]; then
69+
mv dirsearch.bin dist/dirsearch-linux-amd64-${{ matrix.variant.name }}
70+
else
71+
echo "Expected Nuitka output 'dirsearch' or 'dirsearch.bin' not found" >&2
72+
ls -la
73+
exit 1
74+
fi
6875
- name: Test Linux binary
6976
run: |
7077
./dist/dirsearch-linux-amd64-${{ matrix.variant.name }} --version

.github/workflows/nuitka-macos-intel.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ env:
1313
jobs:
1414
build-macos-intel:
1515
name: Build macOS Intel (${{ matrix.variant.name }})
16-
runs-on: macos-13
16+
runs-on: macos-15-large
1717
timeout-minutes: 45
1818
strategy:
1919
fail-fast: false
@@ -58,8 +58,15 @@ jobs:
5858
- name: Rename binary
5959
run: |
6060
mkdir -p dist
61-
mv dirsearch.bin dist/dirsearch-macos-intel-${{ matrix.variant.name }}
62-
61+
if [ -f dirsearch ]; then
62+
mv dirsearch dist/dirsearch-macos-intel-${{ matrix.variant.name }}
63+
elif [ -f dirsearch.bin ]; then
64+
mv dirsearch.bin dist/dirsearch-macos-intel-${{ matrix.variant.name }}
65+
else
66+
echo "Expected Nuitka output 'dirsearch' or 'dirsearch.bin' not found" >&2
67+
ls -la
68+
exit 1
69+
fi
6370
- name: Test macOS Intel binary
6471
run: |
6572
./dist/dirsearch-macos-intel-${{ matrix.variant.name }} --version

.github/workflows/nuitka-macos-silicon.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ env:
1313
jobs:
1414
build-macos-silicon:
1515
name: Build macOS Silicon (${{ matrix.variant.name }})
16-
runs-on: macos-latest
16+
runs-on: macos-14
1717
timeout-minutes: 45
1818
strategy:
1919
fail-fast: false
@@ -58,8 +58,15 @@ jobs:
5858
- name: Rename binary
5959
run: |
6060
mkdir -p dist
61-
mv dirsearch.bin dist/dirsearch-macos-silicon-${{ matrix.variant.name }}
62-
61+
if [ -f dirsearch ]; then
62+
mv dirsearch dist/dirsearch-macos-silicon-${{ matrix.variant.name }}
63+
elif [ -f dirsearch.bin ]; then
64+
mv dirsearch.bin dist/dirsearch-macos-silicon-${{ matrix.variant.name }}
65+
else
66+
echo "Expected Nuitka output 'dirsearch' or 'dirsearch.bin' not found" >&2
67+
ls -la
68+
exit 1
69+
fi
6370
- name: Test macOS Silicon binary
6471
run: |
6572
./dist/dirsearch-macos-silicon-${{ matrix.variant.name }} --version

0 commit comments

Comments
 (0)