diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 73e3d26..419c865 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -156,55 +156,6 @@ jobs: name: bindings-${{ matrix.settings.target }} path: ${{ env.APP_NAME }}.*.node if-no-files-found: error - build-freebsd: - runs-on: macos-10.15 - name: Build FreeBSD - steps: - - uses: actions/checkout@v4 - - name: Build - id: build - uses: vmactions/freebsd-vm@v0.1.5 - env: - DEBUG: napi:* - RUSTUP_HOME: /usr/local/rustup - CARGO_HOME: /usr/local/cargo - RUSTUP_IO_THREADS: 1 - with: - envs: DEBUG RUSTUP_HOME CARGO_HOME RUSTUP_IO_THREADS - usesh: true - mem: 3000 - prepare: | - pkg install -y curl node14 python2 - curl -qL https://www.npmjs.com/install.sh | sh - npm install -g yarn - curl https://sh.rustup.rs -sSf --output rustup.sh - sh rustup.sh -y --profile minimal --default-toolchain stable - export PATH="/usr/local/cargo/bin:$PATH" - echo "~~~~ rustc --version ~~~~" - rustc --version - echo "~~~~ node -v ~~~~" - node -v - echo "~~~~ yarn --version ~~~~" - yarn --version - run: | - export PATH="/usr/local/cargo/bin:$PATH" - pwd - ls -lah - whoami - env - freebsd-version - yarn install --ignore-scripts --frozen-lockfile --registry https://registry.npmjs.org --network-timeout 300000 - yarn build - sudo strip -x *.node - sudo yarn test - sudo rm -rf node_modules - sudo rm -rf target - - name: Upload artifact - uses: actions/upload-artifact@v2 - with: - name: bindings-freebsd - path: ${{ env.APP_NAME }}.*.node - if-no-files-found: error test-macOS-windows-binding: name: Test bindings on ${{ matrix.settings.target }} - node@${{ matrix.node }} needs: @@ -292,7 +243,6 @@ jobs: - '22' runs-on: ubuntu-latest steps: - - run: docker run --rm --privileged multiarch/qemu-user-static:register --reset - uses: actions/checkout@v4 - name: Download artifacts uses: actions/download-artifact@v4 @@ -302,13 +252,16 @@ jobs: - name: List packages run: ls -R . shell: bash - - name: Cache NPM dependencies - uses: actions/cache@v4 - with: - path: node_modules - key: npm-cache-test-linux-aarch64-gnu-${{ matrix.node }}-${{ hashFiles('yarn.lock') }} - name: Install dependencies - run: yarn install --ignore-scripts --ignore-platform --frozen-lockfile --registry https://registry.npmjs.org --network-timeout 300000 + run: | + yarn config set supportedArchitectures.cpu "arm64" + yarn config set supportedArchitectures.libc "glibc" + yarn install + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + with: + platforms: arm64 + - run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes - name: Setup and run tests uses: addnab/docker-run-action@v3 with: @@ -330,7 +283,6 @@ jobs: - '22' runs-on: ubuntu-latest steps: - - run: docker run --rm --privileged multiarch/qemu-user-static:register --reset - uses: actions/checkout@v4 - name: Download artifacts uses: actions/download-artifact@v4 @@ -340,13 +292,15 @@ jobs: - name: List packages run: ls -R . shell: bash - - name: Cache NPM dependencies - uses: actions/cache@v4 - with: - path: node_modules - key: npm-cache-test-linux-arm-gnueabihf-${{ matrix.node }}-${{ hashFiles('yarn.lock') }} - name: Install dependencies - run: yarn install --ignore-scripts --ignore-platform --frozen-lockfile --registry https://registry.npmjs.org --network-timeout 300000 + run: | + yarn config set supportedArchitectures.cpu "arm" + yarn install + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + with: + platforms: arm + - run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes - name: Setup and run tests uses: addnab/docker-run-action@v3 with: @@ -360,7 +314,6 @@ jobs: name: Publish runs-on: ubuntu-latest needs: - - build-freebsd - test-macOS-windows-binding # - test-linux-x64-gnu-binding - test-linux-x64-musl-binding