Skip to content

Prerelease v1.3.0-rc.1 #155

Prerelease v1.3.0-rc.1

Prerelease v1.3.0-rc.1 #155

Workflow file for this run

name: CI
on:
- push
- pull_request
permissions: {}
jobs:
check-latest-versions:
permissions:
contents: read
runs-on: 'ubuntu-24.04'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check latest versions
run: ./check-latest-versions.sh
build:
permissions:
contents: read
name: build-${{ matrix.platform }}
runs-on: ${{ matrix.os }}
needs: check-latest-versions
strategy:
fail-fast: false
matrix:
include:
- os: 'ubuntu-24.04'
platform: 'linux-x64'
- os: 'ubuntu-24.04'
platform: 'linux-armv6'
- os: 'ubuntu-24.04'
platform: 'linuxmusl-x64'
- os: 'ubuntu-24.04'
platform: 'linux-ppc64le'
- os: 'ubuntu-24.04'
platform: 'linux-riscv64'
- os: 'ubuntu-24.04'
platform: 'linux-s390x'
- os: 'ubuntu-24.04'
platform: 'dev-wasm32'
- os: 'ubuntu-24.04'
platform: 'win32-ia32'
- os: 'ubuntu-24.04'
platform: 'win32-x64'
- os: 'ubuntu-24.04'
platform: 'win32-arm64v8'
- os: 'macos-15-intel'
platform: 'darwin-x64'
- os: 'macos-15'
platform: 'darwin-arm64v8'
- os: 'ubuntu-24.04-arm'
platform: 'linux-arm64v8'
- os: 'ubuntu-24.04-arm'
platform: 'linuxmusl-arm64v8'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies (macOS)
if: runner.os == 'macOS'
run: |
pipx install meson
brew install automake nasm
- name: Build ${{ matrix.platform }}
run: ./build.sh ${{ matrix.platform }}
- name: Upload ${{ matrix.platform }} artifact
uses: actions/upload-artifact@v4
with:
name: build-${{ matrix.platform }}
path: '*.tar.gz'
compression-level: 0
retention-days: 1
if-no-files-found: error
populate-and-publish-npm-workspace:
permissions:
contents: write
id-token: write
needs: build
runs-on: ubuntu-24.04
steps:
- name: Install Node.js
uses: actions/setup-node@v5
with:
node-version: '24'
- name: Checkout
uses: actions/checkout@v4
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
merge-multiple: true
- name: Populate npm workspace
run: ./populate-npm-workspace.sh
- name: Create npm workspace tarball
run: tar -vcaf npm-workspace.tar.xz -C npm .
- name: Generate release notes
run: ./generate-release-notes.sh
- name: Create GitHub release for tag
if: startsWith(github.ref, 'refs/tags/v')
uses: ncipollo/release-action@v1
with:
artifacts: npm-workspace.tar.xz
artifactContentType: application/x-xz
bodyFile: release-notes.md
prerelease: ${{ contains(github.ref, '-rc') }}
makeLatest: ${{ !contains(github.ref, '-rc') }}
- name: Publish npm packages
if: startsWith(github.ref, 'refs/tags/v')
run: cd npm && npm publish --workspaces --tag=${{ contains(github.ref, '-rc') && 'next' || 'latest' }}