-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 760 Bytes
/
rust.yml
File metadata and controls
39 lines (31 loc) · 760 Bytes
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
name: Rust CI Check
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-latest']
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Run install_ospect.sh on Unix
if: matrix.os != 'windows-latest'
run: |
chmod +x install_ospect.sh
echo "y" | ./install_ospect.sh
export PATH="$HOME/bin:$PATH"
ospect --version
- name: Run install_ospect.bat on Windows
if: matrix.os == 'windows-latest'
shell: cmd
run: |
echo.exe "y" | call .\install_ospect.bat
ospect.exe --version