From 8a319553d212416540411d0339cd3ad4e2c82e1e Mon Sep 17 00:00:00 2001 From: Elijah Zupancic Date: Tue, 5 Mar 2024 12:49:37 -0800 Subject: [PATCH] ci: add examples build check to CI --- .github/workflows/ci.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 93ade52..f86a4f6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -39,6 +39,39 @@ jobs: - name: run tests run: cargo test --verbose + examples-linux: + name: Examples (Linux) + runs-on: ubuntu-latest + steps: + - name: checkout source + uses: actions/checkout@v3 + - name: set up cargo cache + uses: actions/cache@v3 + 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: set up nginx deps cache + uses: actions/cache@v3 + continue-on-error: false + with: + path: | + .cache/.gnupg + .cache/nginx + .cache/*.tar.gz + .cache/*.tar.asc + .cache/*.tar.sig + key: ${{ runner.os }}-deps-${{ hashFiles('**/nginx-sys/build.rs') }} + restore-keys: ${{ runner.os }}-deps- + - name: compile examples + run: cargo build --release --package examples --examples --verbose + test-macos: name: Test (MacOS) runs-on: macos-latest