Skip to content

Update Swatinem/rust-cache action to v2 #48

Update Swatinem/rust-cache action to v2

Update Swatinem/rust-cache action to v2 #48

Workflow file for this run

name: Test
on:
push:
branches:
- main
paths:
- '.github/workflows/test.yml'
- 'src/**'
pull_request:
branches:
- main
paths:
- '.github/workflows/test.yml'
- 'src/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v2
- name: Install gtk on Ubuntu
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y webkit2gtk-4.0
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: --manifest-path=Cargo.toml --release