CI: produce self-contained binary for "macos-arm64"

This commit is contained in:
Jesse Chan
2021-07-13 00:56:20 +08:00
parent 78611b2f14
commit aa75f44c70
3 changed files with 19 additions and 0 deletions

View File

@@ -181,6 +181,11 @@ jobs:
sudo apt update
sudo apt install --reinstall -y qemu-user-static
- name: Install ldid
run: |
sudo wget https://github.com/jesec/ldid-static/releases/download/v2.1.4/ldid-amd64 -O /usr/local/bin/ldid
sudo chmod +x /usr/local/bin/ldid
- run: sudo npm install -g pkg
- uses: actions/download-artifact@v2
@@ -221,6 +226,13 @@ jobs:
path: dist-pkg/flood-macos-x64
if-no-files-found: error
- name: 'Upload executable: MacOS arm64'
uses: actions/upload-artifact@v2
with:
name: flood-macos-arm64
path: dist-pkg/flood-macos-arm64
if-no-files-found: error
- name: 'Upload executable: Windows x64'
uses: actions/upload-artifact@v2
with:

View File

@@ -34,6 +34,11 @@ jobs:
sudo apt update
sudo apt install --reinstall -y qemu-user-static
- name: Install ldid
run: |
sudo wget https://github.com/jesec/ldid-static/releases/download/v2.1.4/ldid-amd64 -O /usr/local/bin/ldid
sudo chmod +x /usr/local/bin/ldid
- run: npm run build-pkg
- run: git fetch origin ${{ github.ref }}
- run: git for-each-ref ${{ github.ref }} --format="%(contents)" > body
@@ -58,6 +63,7 @@ jobs:
dist-pkg/flood-linux-x64
dist-pkg/flood-linux-arm64
dist-pkg/flood-macos-x64
dist-pkg/flood-macos-arm64
dist-pkg/flood-win-x64.exe
dist-pkg/flood-win-arm64.exe

View File

@@ -42,6 +42,7 @@
"node14-linuxstatic-x64",
"node14-linuxstatic-arm64",
"node14-macos-x64",
"node14-macos-arm64",
"node14-win-x64",
"node14-win-arm64"
]