-
Notifications
You must be signed in to change notification settings - Fork 15
40 lines (37 loc) · 1.13 KB
/
rust.yml
File metadata and controls
40 lines (37 loc) · 1.13 KB
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
name: Rust
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Prepare dependencies
run: sudo apt-get install coinor-libcbc-dev
- name: Build
run: cargo build --verbose --all
- name: Run tests
run: cargo test --verbose --all
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Prepare dependencies
shell: powershell
run: |
Install-Module 7Zip4PowerShell -Force -Verbose
mkdir C:\Cbc
Invoke-WebRequest "https://bintray.com/coin-or/download/download_file?file_path=Cbc-2.9-win32-msvc14.zip" -OutFile "C:\Cbc\Cbc-2.9.zip"
7z x C:\Cbc\Cbc-2.9.zip -o"C:\Cbc\"
Get-ChildItem -Path "C:\Cbc"
Get-ChildItem -Path "C:\Cbc\lib"
echo "C:\Cbc\lib" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo $env:GITHUB_PATH
type $env:GITHUB_PATH
- name: Build
run: cargo build --verbose --all
- name: Run tests
run: cargo test --verbose --all