mirror of
https://github.com/zoriya/flood.git
synced 2025-12-06 07:16:18 +00:00
CI: produce self-contained binary for "macos-arm64"
This commit is contained in:
12
.github/workflows/publish-rolling.yml
vendored
12
.github/workflows/publish-rolling.yml
vendored
@@ -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:
|
||||
|
||||
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@@ -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
|
||||
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
"node14-linuxstatic-x64",
|
||||
"node14-linuxstatic-arm64",
|
||||
"node14-macos-x64",
|
||||
"node14-macos-arm64",
|
||||
"node14-win-x64",
|
||||
"node14-win-arm64"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user