Skip to content

ci: Use GitHub Actions instead #1

ci: Use GitHub Actions instead

ci: Use GitHub Actions instead #1

Workflow file for this run

on: [push, workflow_dispatch]
jobs:
build:
strategy:
matrix:
versions:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
- os: ubuntu-latest
target: aarch64-unknown-linux-gnu
- os: ubuntu-latest
target: aarch64-unknown-linux-musl
- os: macos-latest
target: x86_64-apple-darwin
- os: macos-latest
target: aarch64-apple-darwin
- os: windows-latest
target: x86_64-pc-windows-msvc
- os: windows-latest
target: aarch64-pc-windows-msvc
runs-on: ${{ matrix.versions.os }}
name: ${{ matrix.versions.os }}-${{ matrix.versions.target }}
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.versions.target }}
- run: bun install
- run: bun run build --target ${{ matrix.versions.target }}
- uses: actions/upload-artifact@v4
with:
name: highlight-${{ matrix.versions.target }}
path: dist/
list:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
path: dist/
merge-multiple: true
- run: ls -R dist