From 49c7427effee7d79661ed5beceb3ff2d755a0c62 Mon Sep 17 00:00:00 2001 From: Connor Slade Date: Sun, 26 Nov 2023 12:29:37 -0500 Subject: [PATCH] Redo CI --- .github/workflows/aoc_2021.yml | 23 +++++++++++++++++++++++ .github/workflows/aoc_2022.yml | 23 +++++++++++++++++++++++ .github/workflows/bin.yml | 24 ++++++++++++++++++++++++ .github/workflows/rust.yml | 11 ----------- 4 files changed, 70 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/aoc_2021.yml create mode 100644 .github/workflows/aoc_2022.yml create mode 100644 .github/workflows/bin.yml delete mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/aoc_2021.yml b/.github/workflows/aoc_2021.yml new file mode 100644 index 0000000..0574f6c --- /dev/null +++ b/.github/workflows/aoc_2021.yml @@ -0,0 +1,23 @@ +name: aoc_2021 +on: + push: + paths: + - "aoc_2021/**" + +env: + CRATE: aoc_2021 + +jobs: + build: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v2 + - name: Build + run: cargo build -p ${{ env.CRATE }}} + - name: Test + run: cargo test -p ${{ env.CRATE }}} diff --git a/.github/workflows/aoc_2022.yml b/.github/workflows/aoc_2022.yml new file mode 100644 index 0000000..58b0af9 --- /dev/null +++ b/.github/workflows/aoc_2022.yml @@ -0,0 +1,23 @@ +name: aoc_2022 +on: + push: + paths: + - "aoc_2022/**" + +env: + CRATE: aoc_2022 + +jobs: + build: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v2 + - name: Build + run: cargo build -p ${{ env.CRATE }}} + - name: Test + run: cargo test -p ${{ env.CRATE }}} diff --git a/.github/workflows/bin.yml b/.github/workflows/bin.yml new file mode 100644 index 0000000..184b852 --- /dev/null +++ b/.github/workflows/bin.yml @@ -0,0 +1,24 @@ +name: bin +on: + push: + paths: + - "src/**" + - "Cargo.toml" + +env: + CRATE: advent_of_code + +jobs: + build: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v2 + - name: Build + run: cargo build -p ${{ env.CRATE }}} + - name: Test + run: cargo test -p ${{ env.CRATE }}} diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml deleted file mode 100644 index 576454a..0000000 --- a/.github/workflows/rust.yml +++ /dev/null @@ -1,11 +0,0 @@ -name: CI -on: [push, pull_request] -jobs: - buildAndTest: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - name: Build - run: cargo build