-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (36 loc) · 1.11 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
permissions:
contents: read
on:
push:
branches: [master]
pull_request:
name: test
jobs:
required:
runs-on: ubuntu-latest
name: ubuntu / ${{ matrix.toolchain }}
strategy:
matrix:
toolchain: [nightly]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install ${{ matrix.toolchain }}
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- name: cargo generate-lockfile
if: hashFiles('Cargo.lock') == ''
run: cargo generate-lockfile
- name: install mopac
run: |
set -xe
curl -OL https://github.com/openmopac/mopac/releases/download/v23.0.2/mopac-23.0.2-linux.tar.gz
gunzip mopac-23.0.2-linux.tar.gz
tar xf mopac-23.0.2-linux.tar
mkdir -p /opt/mopac
cp mopac-23.0.2-linux/bin/mopac /opt/mopac/.
cp mopac-23.0.2-linux/lib/libmopac.so /opt/mopac/.
- name: cargo test --locked
run: cargo test --locked --all-features --all-targets -- --include-ignored --nocapture