-
Notifications
You must be signed in to change notification settings - Fork 2
77 lines (60 loc) · 1.95 KB
/
macos.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
name: MacOS Workflow
on:
push:
branches:
- main
pull_request:
branches:
- '**'
types: [opened, synchronize, reopened]
jobs:
build_and_test:
name: MacOS Build and Run test
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
rustc: 1.79
cargo: 1.79
target: x86_64-apple-darwin
components: rustfmt, clippy
- name: Install GCC
run: |
brew install gcc@12
- name: Install Go
run: brew install go
- name: Cargo
uses: actions-rs/cargo@v1
with:
command: build
args: --release --all-features
- name: C/C++ version
run: |
gcc-12 --version
g++-12 --version
- name: Build Rust code
run: cargo build
- name: Clippy
run: cargo clippy
- name: Setup 'python3' as default
run: ./target/debug/quicktest setup config --label="Language::Python.PROGRAM" --value="python3"
- name: Setup 'g++-12' as default
run: ./target/debug/quicktest setup config --label="Language::Cpp.PROGRAM" --value="g++-12"
- name: Setup 'gcc-12' as default
run: ./target/debug/quicktest setup config --label="Language::C.PROGRAM" --value="gcc-12"
- name: Test cmp command
run: cargo test cmp_subcommand -- --test-threads 1
- name: Test stress command
run: cargo test stress_subcommand -- --test-threads 1
- name: Test check command
run: cargo test check_subcommand -- --test-threads 1
- name: Test output command
run: cargo test output_subcommand -- --test-threads 1
- name: Test setup command
run: cargo test setup_subcommand -- --test-threads 1