mirror of
https://github.com/darksaid98/mediaplex.git
synced 2026-12-03 14:38:55 +00:00
update
This commit is contained in:
1 parent
2e1bcfd045
commit
bd474a8aaf
1 file changed
+41
-10
+41
-10
@@ -52,11 +52,6 @@ jobs:
|
|||||||
- host: macos-latest
|
- host: macos-latest
|
||||||
target: aarch64-apple-darwin
|
target: aarch64-apple-darwin
|
||||||
build: |
|
build: |
|
||||||
sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/*;
|
|
||||||
export CC=$(xcrun -f clang);
|
|
||||||
export CXX=$(xcrun -f clang++);
|
|
||||||
SYSROOT=$(xcrun --sdk macosx --show-sdk-path);
|
|
||||||
export CFLAGS="-isysroot $SYSROOT -isystem $SYSROOT";
|
|
||||||
yarn build --target aarch64-apple-darwin
|
yarn build --target aarch64-apple-darwin
|
||||||
strip -x *.node
|
strip -x *.node
|
||||||
- host: ubuntu-latest
|
- host: ubuntu-latest
|
||||||
@@ -169,7 +164,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: Build
|
- name: Build
|
||||||
id: build
|
id: build
|
||||||
uses: vmactions/freebsd-vm@v0
|
uses: vmactions/freebsd-vm@v0
|
||||||
@@ -183,7 +178,9 @@ jobs:
|
|||||||
usesh: true
|
usesh: true
|
||||||
mem: 3000
|
mem: 3000
|
||||||
prepare: |
|
prepare: |
|
||||||
pkg install -y -f curl node libnghttp2 npm yarn
|
pkg install -y -f curl node libnghttp2
|
||||||
|
curl -qL https://www.npmjs.com/install.sh | sh
|
||||||
|
npm install --location=global --ignore-scripts yarn
|
||||||
curl https://sh.rustup.rs -sSf --output rustup.sh
|
curl https://sh.rustup.rs -sSf --output rustup.sh
|
||||||
sh rustup.sh -y --profile minimal --default-toolchain beta
|
sh rustup.sh -y --profile minimal --default-toolchain beta
|
||||||
export PATH="/usr/local/cargo/bin:$PATH"
|
export PATH="/usr/local/cargo/bin:$PATH"
|
||||||
@@ -223,8 +220,6 @@ jobs:
|
|||||||
settings:
|
settings:
|
||||||
- host: windows-latest
|
- host: windows-latest
|
||||||
target: x86_64-pc-windows-msvc
|
target: x86_64-pc-windows-msvc
|
||||||
- host: macos-latest
|
|
||||||
target: x86_64-apple-darwin
|
|
||||||
node:
|
node:
|
||||||
- '14'
|
- '14'
|
||||||
- '16'
|
- '16'
|
||||||
@@ -232,6 +227,8 @@ jobs:
|
|||||||
runs-on: ${{ matrix.settings.host }}
|
runs-on: ${{ matrix.settings.host }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
- name: Setup node
|
- name: Setup node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
@@ -430,6 +427,39 @@ jobs:
|
|||||||
set -e
|
set -e
|
||||||
yarn test
|
yarn test
|
||||||
ls -la
|
ls -la
|
||||||
|
universal-macOS:
|
||||||
|
name: Build universal macOS binary
|
||||||
|
needs:
|
||||||
|
- build
|
||||||
|
runs-on: macos-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Setup node
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 18
|
||||||
|
check-latest: true
|
||||||
|
cache: yarn
|
||||||
|
- name: Install dependencies
|
||||||
|
run: yarn install
|
||||||
|
- name: Download macOS x64 artifact
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: bindings-x86_64-apple-darwin
|
||||||
|
path: artifacts
|
||||||
|
- name: Download macOS arm64 artifact
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: bindings-aarch64-apple-darwin
|
||||||
|
path: artifacts
|
||||||
|
- name: Combine binaries
|
||||||
|
run: yarn universal
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: bindings-universal-apple-darwin
|
||||||
|
path: ${{ env.APP_NAME }}.*.node
|
||||||
|
if-no-files-found: error
|
||||||
publish:
|
publish:
|
||||||
name: Publish
|
name: Publish
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -441,6 +471,7 @@ jobs:
|
|||||||
- test-linux-aarch64-gnu-binding
|
- test-linux-aarch64-gnu-binding
|
||||||
- test-linux-aarch64-musl-binding
|
- test-linux-aarch64-musl-binding
|
||||||
- test-linux-arm-gnueabihf-binding
|
- test-linux-arm-gnueabihf-binding
|
||||||
|
- universal-macOS
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Setup node
|
- name: Setup node
|
||||||
@@ -475,4 +506,4 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
Reference in new issue
Block a user