-
Notifications
You must be signed in to change notification settings - Fork 6
55 lines (45 loc) · 1.24 KB
/
build_and_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Rust
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
test_unix:
name: Build and Test (Unix)
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install dependencies (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: sudo apt install -y autopoint
- name: Install dependencies (macOS)
if: matrix.os == 'macos-latest'
run: brew install automake libtool
- name: Run tests
run: cargo test -F test --verbose
test_windows:
name: Build and Test (Windows)
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v4
- name: Setup MSYS2 and dependencies
uses: msys2/setup-msys2@v2
with:
release: false
path-type: inherit
install: >-
mingw-w64-x86_64-autotools
mingw-w64-x86_64-make
mingw-w64-x86_64-libltdl
mingw-w64-x86_64-clang
pkgconf
libtool
- name: Setup Rust
run: rustup default stable-x86_64-pc-windows-gnu
- name: Run tests
run: cargo test -F test --verbose