Skip to content

Commit 90daa7e

Browse files
committed
Add advent of code workflow
1 parent 2e198be commit 90daa7e

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build advent-of-code
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/build-advent-of-code.yml'
7+
- 'advent-of-code/**'
8+
push:
9+
branches:
10+
- main
11+
12+
defaults:
13+
run:
14+
working-directory: 'advent-of-code'
15+
16+
env:
17+
# Disable incremental compilation for faster from-scratch builds
18+
CARGO_INCREMENTAL: 0
19+
20+
jobs:
21+
build:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
- run: rustup update
26+
- run: cargo fmt --check
27+
- run: cargo clippy
28+
- run: cargo build --release

0 commit comments

Comments
 (0)