diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 73c4040..3c94c03 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,14 +9,17 @@ jobs: strategy: matrix: target: - - id: 'linux-amd64' + # - id: 'linux-amd64' + # os: 'ubuntu-20.04' + - id: 'linux-musl' os: 'ubuntu-20.04' - - id: 'darwin-amd64' - os: 'macos-13' - - id: 'darwin-aarch64' - os: 'macos-latest' - - id: 'windows-amd64' - os: 'windows-2022' + container: alpine:latest + # - id: 'darwin-amd64' + # os: 'macos-13' + # - id: 'darwin-aarch64' + # os: 'macos-latest' + # - id: 'windows-amd64' + # os: 'windows-2022' # When unpacking an archive on Windows, the symlinks can't be # created unless the target path already exists. This causes # problems when the linked file is ordered after the link @@ -28,16 +31,21 @@ jobs: fail-fast: true runs-on: ${{ matrix.target.os }} - + container: ${{ matrix.container }} steps: - name: Check out the code uses: actions/checkout@v3 - name: Install `ninja` on Ubuntu - if: startsWith(matrix.target.id, 'linux-') + if: startsWith(matrix.target.id, 'linux-amd64') shell: bash run: | sudo apt-get install ninja-build -y + + - name: Install `ninja` on Alpine + if: startsWith(matrix.target.id, 'linux-musl') + run: | + apk install ninja - name: Install `ninja` on macOS if: startsWith(matrix.target.id, 'darwin-')