Skip to content

Commit a5aab3e

Browse files
committed
Move Determine architecture step before DMG build
1 parent 57c637c commit a5aab3e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/macos-build.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,15 @@ jobs:
7272
sudo cp zig/zig-out/bin/rockboxd /usr/local/bin/
7373
- name: Generate Package Installer
7474
run: ./packaging/macos/build-pkg.sh
75+
- name: Determine architecture
76+
id: vars
77+
run: |
78+
if [ "${{ matrix.os }}" == "macos-latest" ]; then
79+
echo "arch=aarch64" >> $GITHUB_OUTPUT
80+
else
81+
echo "arch=x86_64" >> $GITHUB_OUTPUT
82+
fi
83+
echo "version=${{ github.event.inputs.tag || github.ref_name }}" >> $GITHUB_OUTPUT
7584
- name: Build DMG
7685
run: |
7786
xcodebuild -scheme Rockbox -configuration Release archive -archivePath ./build/Rockbox.xcarchive
@@ -98,15 +107,6 @@ jobs:
98107
run: |
99108
./target/release/rockbox --version
100109
./zig/zig-out/bin/rockboxd --version
101-
- name: Determine architecture
102-
id: vars
103-
run: |
104-
if [ "${{ matrix.os }}" == "macos-latest" ]; then
105-
echo "arch=aarch64" >> $GITHUB_OUTPUT
106-
else
107-
echo "arch=x86_64" >> $GITHUB_OUTPUT
108-
fi
109-
echo "version=${{ github.event.inputs.tag || github.ref_name }}" >> $GITHUB_OUTPUT
110110
- name: Archive artifacts
111111
run: |
112112
VERSION="${{ steps.vars.outputs.version }}"

0 commit comments

Comments
 (0)