-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (50 loc) · 1.4 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
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: Cache mopac
id: cache-mopac
uses: actions/cache@v4
with:
path: |
mopac/build/mopac
mopac/build/libmopac.so.1
key: ${{ runner.os }}-build-mopac
- name: install mopac
if: steps.cache-mopac.outputs.cache-hit != 'true'
run: |
sudo apt install -y python3 python3-numpy
git clone https://github.com/openmopac/mopac.git
cd mopac
mkdir build
cd build
cmake ..
make
- name: copy over mopac
run: |
mkdir -p /opt/mopac
cp mopac/build/mopac /opt/mopac/.
# https://twitter.com/jonhoo/status/1571290371124260865
- name: cargo test --locked
run: cargo test --locked --all-features --all-targets -- --include-ignored