Changes for v0.8.0 #11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: build | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| node: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [18.x, 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 }} | |
| - run: npm ci | |
| - run: npm run test | |
| - run: node dist/cli.js ls | |
| - run: node bin/cli.cjs ls | |
| - run: npm link && runbook ls && r ls | |
| bun: | |
| needs: node | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| node-version: [22.x] | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| arch: [x64, arm64] | |
| exclude: | |
| - os: windows-latest | |
| arch: arm64 | |
| 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: npm ci | |
| - run: bun test | |
| - run: bun run src/cli.ts -- ls | |
| - run: | | |
| platform="$(echo "${{ matrix.os }}" | sed -E 's/^ubuntu(-.*)?$/linux/; s/^macos(-.*)?$/darwin/; s/^windows(-.*)?$/windows/;')-${{ matrix.arch }}" | |
| binary="./exec/runbook-$platform" | |
| bun run "build:native:binaries:$platform" | |
| chmod +x "$binary" | |
| "$binary" ls |