From 8c87dfb0c3063cf49d199b089bc77cf882fbf22a Mon Sep 17 00:00:00 2001 From: skdhg <46562212+skdhg@users.noreply.github.com> Date: Sun, 6 Aug 2023 21:50:19 +0545 Subject: [PATCH] update --- .github/workflows/CI.yml | 54 ++++++++-------------------------------- 1 file changed, 11 insertions(+), 43 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 02690b4..7812481 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -16,6 +16,9 @@ env: - .editorconfig - docs/** pull_request: null +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: build: strategy: @@ -49,6 +52,11 @@ jobs: - host: macos-latest target: aarch64-apple-darwin 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 strip -x *.node - host: ubuntu-latest @@ -91,8 +99,6 @@ jobs: runs-on: ${{ matrix.settings.host }} steps: - uses: actions/checkout@v3 - with: - submodules: true - name: Setup node uses: actions/setup-node@v3 if: ${{ !matrix.settings.docker }} @@ -160,8 +166,6 @@ jobs: name: Build FreeBSD steps: - uses: actions/checkout@v3 - with: - submodules: true - name: Build id: build uses: vmactions/freebsd-vm@v0 @@ -175,9 +179,7 @@ jobs: usesh: true mem: 3000 prepare: | - pkg install -y -f curl node libnghttp2 - curl -qL https://www.npmjs.com/install.sh | sh - npm install --location=global --ignore-scripts yarn + pkg install -y -f curl node libnghttp2 npm yarn curl https://sh.rustup.rs -sSf --output rustup.sh sh rustup.sh -y --profile minimal --default-toolchain beta export PATH="/usr/local/cargo/bin:$PATH" @@ -217,6 +219,8 @@ jobs: settings: - host: windows-latest target: x86_64-pc-windows-msvc + - host: macos-latest + target: x86_64-apple-darwin node: - '14' - '16' @@ -224,8 +228,6 @@ jobs: runs-on: ${{ matrix.settings.host }} steps: - uses: actions/checkout@v3 - with: - submodules: true - name: Setup node uses: actions/setup-node@v3 with: @@ -424,39 +426,6 @@ jobs: set -e yarn test 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: name: Publish runs-on: ubuntu-latest @@ -468,7 +437,6 @@ jobs: - test-linux-aarch64-gnu-binding - test-linux-aarch64-musl-binding - test-linux-arm-gnueabihf-binding - - universal-macOS steps: - uses: actions/checkout@v3 - name: Setup node