README: add asciinema demo #44
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 toolbox | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Build toolbox ${{ matrix.os }} (${{ matrix.arch }}) | |
| runs-on: ${{ matrix.runner }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - runner: ubuntu-24.04 | |
| os: linux | |
| arch: amd64 | |
| - runner: ubuntu-24.04-arm | |
| os: linux | |
| arch: arm64 | |
| - runner: macos-13 | |
| os: darwin | |
| arch: amd64 | |
| - runner: macos-15 | |
| os: darwin | |
| arch: arm64 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| check-latest: true | |
| cache: true | |
| - name: Install Nix | |
| uses: cachix/install-nix-action@v31 | |
| - name: Build toolbox builder | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| cd toolbox | |
| go build -o toolbox-builder | |
| - name: Build toolbox archive (Linux) | |
| if: matrix.os == 'linux' | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| cd toolbox | |
| ./toolbox-builder --playbook ../playbook/60-second-linux.yaml --out . | |
| - name: Build toolbox archive (Darwin) | |
| if: matrix.os == 'darwin' | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| cd toolbox | |
| ./toolbox-builder --playbook ../playbook/60-second-darwin.yaml --out . | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: toolbox.${{ matrix.os }}.${{ matrix.arch }} | |
| path: toolbox/*.tar.xz | |
| if-no-files-found: error | |
| retention-days: 7 | |