Merge pull request #13 from nyurik/wip #84
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
# FIXME: remove testing_gq from below | |
on: | |
push: | |
branches: [ main, testing_gq ] | |
pull_request: | |
branches: [ main, testing_gq ] | |
release: | |
types: [ published ] | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false # 7.6 is not yet supported properly. Once fixed, this can be set to true | |
matrix: | |
include: | |
- setup: varnish74 | |
- setup: varnish75 | |
- setup: varnish76 | |
env: | |
RUST_BACKTRACE: 1 | |
RUSTDOCFLAGS: -D warnings | |
RUSTFLAGS: -D warnings | |
steps: | |
- uses: taiki-e/install-action@v2 | |
with: { tool: just } | |
- uses: actions/checkout@v4 | |
- name: Ensure this crate has not yet been published (on release) | |
if: github.event_name == 'release' | |
run: just check-if-published | |
- uses: Swatinem/rust-cache@v2 | |
if: github.event_name != 'release' && github.event_name != 'workflow_dispatch' | |
- name: install varnish-dev | |
run: | | |
curl -s https://packagecloud.io/install/repositories/varnishcache/${{ matrix.setup }}/script.deb.sh | sudo bash | |
sudo apt-get install -y varnish-dev | |
- run: just -v ci-test |