name: Build and run challenges defaults: run: shell: sh on: push: jobs: build-and-run: name: Challenge for day strategy: matrix: day_number: [1, 2, 3] runs-on: rust-bookworm steps: - name: Check out repository code uses: actions/checkout@v4 - name: Run challenge run: | echo '${{ vars[format('INPUT_DAY{0}', matrix.day_number) }}' echo '${{ vars[format('INPUT_DAY{0}', matrix.day_number) }}' > "$GITHUB_LOGS" cd day${{ matrix.day_number }} cargo run --release input