mirror of
https://github.com/hinto-janai/gupax.git
synced 2024-11-17 09:47:36 +00:00
49 lines
930 B
YAML
49 lines
930 B
YAML
|
name: CI
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches: [ "main" ]
|
||
|
pull_request:
|
||
|
branches: [ "main" ]
|
||
|
|
||
|
env:
|
||
|
CARGO_TERM_COLOR: always
|
||
|
RUST_BACKTRACE: "full"
|
||
|
|
||
|
jobs:
|
||
|
ci:
|
||
|
runs-on: ${{ matrix.os }}
|
||
|
|
||
|
strategy:
|
||
|
matrix:
|
||
|
os: [windows-2019, macos-11, ubuntu-20.04]
|
||
|
build: [dev, release]
|
||
|
|
||
|
steps:
|
||
|
- name: Checkout
|
||
|
uses: actions/checkout@v3
|
||
|
with:
|
||
|
submodules: recursive
|
||
|
|
||
|
- name: Cache
|
||
|
uses: actions/cache@v3
|
||
|
with:
|
||
|
path: |
|
||
|
~/.cargo
|
||
|
target
|
||
|
key: ${{ matrix.os }}-${{ matrix.build }}
|
||
|
|
||
|
- name: Install dependencies
|
||
|
run: |
|
||
|
if [ "$RUNNER_OS" == "Linux" ]; then
|
||
|
sudo apt update
|
||
|
sudo apt install -y libgtk-3-dev
|
||
|
fi
|
||
|
shell: bash
|
||
|
|
||
|
- name: Test
|
||
|
run: cargo test --all-features --profile ${{ matrix.build }}
|
||
|
|
||
|
- name: Build
|
||
|
run: cargo build --all-features --profile ${{ matrix.build }}
|