mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-23 00:05:19 +03:00
Is it this easy to build an universal binary?
This commit is contained in:
parent
3394e2b3c4
commit
1c5aa1a20e
1 changed files with 9 additions and 20 deletions
29
.github/workflows/ci.yml
vendored
29
.github/workflows/ci.yml
vendored
|
@ -87,6 +87,7 @@ jobs:
|
||||||
echo "BUILD_SUFFIX=${BUILD_SUFFIX}" >> $GITHUB_ENV
|
echo "BUILD_SUFFIX=${BUILD_SUFFIX}" >> $GITHUB_ENV
|
||||||
echo "BUILD_NAMEx64=inav-configurator_darwin_x64_${VERSION}_${BUILD_SUFFIX}" >> $GITHUB_ENV
|
echo "BUILD_NAMEx64=inav-configurator_darwin_x64_${VERSION}_${BUILD_SUFFIX}" >> $GITHUB_ENV
|
||||||
echo "BUILD_NAMEarm64=inav-configurator_darwin_arm64_${VERSION}_${BUILD_SUFFIX}" >> $GITHUB_ENV
|
echo "BUILD_NAMEarm64=inav-configurator_darwin_arm64_${VERSION}_${BUILD_SUFFIX}" >> $GITHUB_ENV
|
||||||
|
echo "BUILD_NAME=inav-configurator_darwin_${VERSION}_${BUILD_SUFFIX}" >> $GITHUB_ENV
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
|
@ -102,30 +103,18 @@ jobs:
|
||||||
retry_on: error
|
retry_on: error
|
||||||
command: npm install
|
command: npm install
|
||||||
timeout_minutes: 10
|
timeout_minutes: 10
|
||||||
- name: Build MacOS x64
|
- name: Build MacOS
|
||||||
run: npm run make -- --arch="x64"
|
run: npm run make -- --arch="universal"
|
||||||
- name: Build MacOS arm64
|
- name: Upload MacOS zip
|
||||||
run: npm run make -- --arch="arm64"
|
|
||||||
- name: Upload MacOS x64 zip
|
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{env.BUILD_NAMEx64}}_ZIP
|
name: ${{env.BUILD_NAME}}_ZIP
|
||||||
path: ./out/make/zip/darwin/x64/*.zip
|
path: ./out/make/zip/darwin/universal/*.zip
|
||||||
- name: Upload MacOS x64 dmg
|
- name: Upload MacOS4 dmg
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{env.BUILD_NAMEx64}}_DMG
|
name: ${{env.BUILD_NAME}}_DMG
|
||||||
path: ./out/make/*x64*.dmg
|
path: ./out/make/*x64*.dmg
|
||||||
- name: Upload MacOS arm64 zip
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: ${{env.BUILD_NAMEarm64}}_ZIP
|
|
||||||
path: ./out/make/zip/darwin/arm64/*.zip
|
|
||||||
- name: Upload MacOS arm64 dmg
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: ${{env.BUILD_NAMEarm64}}_DMG
|
|
||||||
path: ./out/make/*arm64*.dmg
|
|
||||||
build-windows:
|
build-windows:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
|
@ -191,4 +180,4 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: ${{env.BUILD_NAMEia32}}_MSI
|
name: ${{env.BUILD_NAMEia32}}_MSI
|
||||||
path: ./out/make/wix/ia32/*.msi
|
path: ./out/make/wix/ia32/*.msi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue