muda/.github/workflows/test.yml

48 lines
973 B
YAML
Raw Normal View History

2022-12-09 05:50:24 +11:00
# Copyright 2022-2022 Tauri Programme within The Commons Conservancy
2022-10-28 05:04:35 +11:00
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: MIT
name: test
on:
push:
branches:
- dev
pull_request:
env:
RUST_BACKTRACE: 1
concurrency:
2023-06-20 04:58:45 +10:00
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
2022-10-28 05:04:35 +11:00
jobs:
test:
strategy:
fail-fast: false
matrix:
2023-06-20 04:58:45 +10:00
os: ["windows-latest", "macos-latest", "ubuntu-latest"]
runs-on: ${{ matrix.os }}
2022-10-28 05:04:35 +11:00
steps:
- uses: actions/checkout@v2
- name: install system deps
if: contains(matrix.os, 'ubuntu')
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libxdo-dev libayatana-appindicator3-dev
2022-10-28 05:04:35 +11:00
- name: install stable
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
2023-06-20 04:58:45 +10:00
command: test