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
f4158a447b
commit
8c87dfb0c3
1 file changed
+11
-43
+11
-43
@@ -16,6 +16,9 @@ env:
|
|||||||
- .editorconfig
|
- .editorconfig
|
||||||
- docs/**
|
- docs/**
|
||||||
pull_request: null
|
pull_request: null
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -49,6 +52,11 @@ 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
|
||||||
@@ -91,8 +99,6 @@ 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
|
||||||
if: ${{ !matrix.settings.docker }}
|
if: ${{ !matrix.settings.docker }}
|
||||||
@@ -160,8 +166,6 @@ jobs:
|
|||||||
name: Build FreeBSD
|
name: Build FreeBSD
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
|
||||||
submodules: true
|
|
||||||
- name: Build
|
- name: Build
|
||||||
id: build
|
id: build
|
||||||
uses: vmactions/freebsd-vm@v0
|
uses: vmactions/freebsd-vm@v0
|
||||||
@@ -175,9 +179,7 @@ jobs:
|
|||||||
usesh: true
|
usesh: true
|
||||||
mem: 3000
|
mem: 3000
|
||||||
prepare: |
|
prepare: |
|
||||||
pkg install -y -f curl node libnghttp2
|
pkg install -y -f curl node libnghttp2 npm yarn
|
||||||
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"
|
||||||
@@ -217,6 +219,8 @@ 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'
|
||||||
@@ -224,8 +228,6 @@ 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:
|
||||||
@@ -424,39 +426,6 @@ 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
|
||||||
@@ -468,7 +437,6 @@ 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
|
||||||
|
|||||||
Reference in new issue
Block a user