Skip to content

Changes for v0.8.0

Changes for v0.8.0 #7

Workflow file for this run

name: build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
name: Use Node.js ${{ matrix.node-version }}
with:
node-version: ${{ matrix.node-version }}
- run: npm install -g bun
- run: bun ci
- run: bun run test
- run: bun run build
- run: bun run src/cli.ts -- ls
- run: node dist/cli.js ls
- run: node bin/cli.cjs ls
- run: ./exec/runbook ls
- run: npm link && runbook ls && r ls
- uses: actions/upload-artifact@v4
with:
name: build-output-dist
path: dist/
retention-days: 1
if-no-files-found: error
- uses: actions/upload-artifact@v4
with:
name: build-output-exec
path: exec/
retention-days: 1
if-no-files-found: error
run-node:
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 22.x, 24.x]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
name: Use Node.js ${{ matrix.node-version }}
with:
node-version: ${{ matrix.node-version }}
- uses: actions/download-artifact@v4
with:
name: build-output-dist
path: dist/
- run: node dist/cli.js ls
run-native:
needs: build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
arch: [x64, arm64]
exclude:
- os: windows-latest
arch: arm64
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: build-output-exec
path: exec/
- run: |
platform="$(echo "${{ matrix.os }}" | sed -E 's/^ubuntu(-.*)?$/linux/; s/^macos(-.*)?$/darwin/; s/^windows(-.*)?$/windows/;')-${{ matrix.arch }}"
binary="./exec/runbook-$platform"
chmod +x "$binary"
"$binary" ls