fix: rename CI #2
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
on: | |
push: | |
paths: | |
- "aoc2024/**" | |
- ".github/**" | |
name: CI (2024) | |
jobs: | |
execute: | |
name: Run application | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
- name: Install nightly toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
override: true | |
- uses: Swatinem/rust-cache@v2 | |
- name: Move to folder & run | |
run: | | |
cd aoc2024 | |
echo "force ci" | |
cargo build --release --quiet | |
cargo run --release | |
test: | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
- name: Install nightly toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
override: true | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run cargo test | |
uses: actions-rs/cargo@v1 | |
with: | |
args: --manifest-path aoc2024/Cargo.toml | |
command: test |