-
-
Notifications
You must be signed in to change notification settings - Fork 125
96 lines (86 loc) · 2.54 KB
/
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: Test
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
jobs:
test-native:
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- run: rustup toolchain install stable --profile minimal
- run: rustup component add rustfmt clippy
- run: cargo fetch
- run: cargo fmt -- --check --color always
- run: cargo clippy --all-targets --all-features
- run: cargo test --release
msys2-build-test: #cargo test doesn't necessarily build the exec we want
strategy:
matrix:
sys: [MINGW64, UCRT64, CLANG64]
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.sys }}
update: true
install: base-devel git
pacboy: >-
rust:p
cc:p
pkgconf:p
cmake:p
freetype:p
python:p
fontconfig:p
- name: Run cargo
shell: msys2 {0}
run: cargo build --release
# cli:
# strategy:
# matrix:
# os: [macos-latest]
# runs-on: ${{ matrix.os }}
# steps:
# - uses: actions/checkout@v3
# - uses: Swatinem/rust-cache@v2
# - run: rustup toolchain install stable --profile minimal
# - run: cargo fetch
# - run: cargo build -p rio --bin rio
# - run: RIO_LOG_LEVEL=info ./target/debug/rio -e touch ${HOME}/rio.test
# - run: |
# FILE=${HOME}/rio.test
# if [ -f "$FILE" ]; then
# echo "$FILE exists."
# else
# echo "$FILE does not exist."
# exit 1
# fi
# shell: bash
# webassembly:
# runs-on: ubuntu-latest
# env:
# GECKODRIVER: chromedriver
# steps:
# - uses: actions/checkout@v3
# - uses: Swatinem/rust-cache@v2
# with:
# cache-all-crates: "true"
# - run: rustup toolchain install stable --profile minimal --target wasm32-unknown-unknown
# - run: cargo fetch
# - run: cargo build -p sugarloaf --target wasm32-unknown-unknown
# - run: cd ./sugarloaf && make install
# - uses: nanasess/setup-chromedriver@v2
# - run: |
# export DISPLAY=:99
# chromedriver --url-base=/wd/hub &
# - run: make test-renderer