vlab again? #29
Workflow file for this run
This file contains 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: test suite | |
on: [ push, pull_request ] | |
jobs: | |
build: | |
name: build-container | |
runs-on: [vlab] | |
timeout-minutes: 2000 | |
strategy: | |
max-parallel: 4 | |
matrix: | |
profile: | |
- debug | |
- release | |
llvm_version: | |
- 18 | |
- 19 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install nix | |
uses: cachix/install-nix-action@v27 | |
with: | |
# Update when you re-run ./update-version-pinning.sh | |
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/1839883cd0068572aed75fb9442b508bbd9ef09c.tar.gz | |
github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: setup nix cache | |
id: nix-package-cache | |
uses: actions/cache@v4 | |
with: | |
path: /nix | |
key: nix-chache-${{ runner.os }}-${{ matrix.profile }}-llvm${{ matrix.llvm_version }}-${{ hashFiles('./nix/versions.nix') }} | |
- name: install just | |
uses: extractions/setup-just@v2 | |
- name: login to ghcr.io | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: build ${{ matrix.profile }} container on llvm "${{ matrix.llvm_version }}" | |
run: just build-container ${{ matrix.profile }} "${{ matrix.llvm_version }}" | |
- name: push ${{ matrix.profile }} container | |
run: just push-container ${{ matrix.profile }} "${{ matrix.llvm_version }}" |