mirror of
https://github.com/mx42/aoc2024.rs.git
synced 2026-01-14 05:49:53 +01:00
Initial commit
This commit is contained in:
33
.github/workflows/ci.yml
vendored
Normal file
33
.github/workflows/ci.yml
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
name: Continuous Integration
|
||||
|
||||
on: push
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
runs-on: ubuntu-latest
|
||||
name: Continuous Integration
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up cargo cache
|
||||
uses: actions/cache@v4
|
||||
continue-on-error: false
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
restore-keys: ${{ runner.os }}-cargo-
|
||||
- name: cargo test
|
||||
run: cargo test
|
||||
# uncomment to enable clippy linter
|
||||
# - name: cargo clippy
|
||||
# run: cargo clippy -- -D warnings
|
||||
# uncomment to enable format linter
|
||||
# - name: cargo fmt
|
||||
# run: cargo fmt --check
|
||||
24
.github/workflows/readme-stars.yml
vendored
Normal file
24
.github/workflows/readme-stars.yml
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
name: Update readme ⭐️ progress
|
||||
|
||||
on:
|
||||
# !Please set a different minute than 51 if you enable this!
|
||||
# schedule:
|
||||
# - cron: "51 */6 * * *" # Every 6 hours
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
update-readme:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ vars.AOC_ENABLED == 'true' }}
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: k2bd/advent-readme-stars@v1
|
||||
with:
|
||||
userId: ${{ secrets.AOC_USER_ID }}
|
||||
sessionCookie: ${{ secrets.AOC_SESSION }}
|
||||
year: ${{ secrets.AOC_YEAR }}
|
||||
- uses: stefanzweifel/git-auto-commit-action@v5
|
||||
with:
|
||||
commit_message: "update readme progress"
|
||||
Reference in New Issue
Block a user