aoc_tests #26
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: aoc_tests | |
on: | |
workflow_dispatch: {} | |
workflow_call: | |
inputs: | |
arch: | |
description: architecture | |
default: 'amd64' | |
type: string | |
arch_suffix: | |
description: 'arch suffix' | |
default: '' | |
type: string | |
llvm_mos_repo: | |
description: 'llvm-mos repo' | |
default: 'mrk-its/llvm-mos' | |
type: string | |
llvm_mos_sdk_repo: | |
description: 'llvm-mos-sdk repo' | |
default: 'mrk-its/llvm-mos-sdk' | |
type: string | |
llvm_mos_ref: | |
description: 'llvm-mos ref' | |
default: 'main' | |
type: string | |
llvm_mos_sdk_ref: | |
description: 'llvm-mos-sdk ref' | |
default: 'main' | |
type: string | |
jobs: | |
run_aoc_tests: | |
strategy: | |
fail-fast: false | |
matrix: | |
arch: [amd64, arm64] | |
runs-on: ubuntu-latest | |
# container: | |
# image: ubuntu:22.04 | |
# options: --user root | |
steps: | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
with: | |
platform: ${{ matrix.arch }} | |
- name: Checkout aoc2022 | |
uses: actions/checkout@v4 | |
with: | |
repository: mrk-its/aoc2022 | |
path: aoc2022 | |
ref: new_rust | |
- name: Checkout aoc2022 inputs | |
uses: actions/checkout@v4 | |
with: | |
repository: mrk-its/aoc2022_inputs | |
path: aoc2022/input | |
token: ${{ secrets.AOC2022_PAT }} | |
- name: chown | |
run: | | |
pwd | |
find . | |
sudo chown -R 1000.1000 aoc2022 | |
- name: run_all | |
run: | | |
docker run --rm -v $(pwd):/workspace -w /workspace --platform linux/${{ matrix.arch }} \ | |
mrkits/rust-mos:1d7989f29-777e89e-2f11e172 /bin/bash --login -c /workspace/aoc2022/run_all.sh |