diff --git a/.github/workflows/puzzles.yaml b/.github/workflows/puzzles.yaml new file mode 100644 index 0000000..9971148 --- /dev/null +++ b/.github/workflows/puzzles.yaml @@ -0,0 +1,54 @@ +--- +name: Puzzles + +on: + push: + branches: + - main + - 'maint/*' + + schedule: + - cron: '0 0 1 * *' + +jobs: + aoc-2021: + name: AoC 2021 — Python + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./2021 + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up environment + uses: actions/setup-python@v5 + with: + python-version: 3.x + + - name: Run + run: make + + - name: Install auxillary tools + run: pip install -U -r requirements.txt + + - name: Lint + run: make lint + + aoc-2022: + name: AoC 2022 — Nim + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./2022 + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up enviroment + uses: jiro4989/setup-nim-action@v1 + + - name: Run + run: make diff --git a/.yamllint.yaml b/.yamllint.yaml new file mode 100644 index 0000000..776adf6 --- /dev/null +++ b/.yamllint.yaml @@ -0,0 +1,4 @@ +--- +rules: + truthy: + check-keys: false diff --git a/README.md b/README.md index 08697bd..3ebd80e 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ # Advent of Code Solutions by ericvw +[![Puzzles](https://github.com/ericvw/advent-of-code/actions/workflows/puzzles.yaml/badge.svg)](https://github.com/ericvw/advent-of-code/actions/workflows/puzzles.yaml) + My solutions to [Advent of Code](https://adventofcode.com/).