-
Notifications
You must be signed in to change notification settings - Fork 54
56 lines (56 loc) · 1.62 KB
/
fpvm-tests.yaml
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
name: FPVM
on: [push]
env:
CARGO_TERM_COLOR: always
jobs:
build-images:
runs-on: ubuntu-lates
timeout-minutes: 20
steps:
- name: Checkout sources
uses: actions/checkout@v4
- uses: taiki-e/install-action@just
- name: Build Images
working-directory: ./build
run: just
- name: Tar Images
run: |
docker save cannon-builder:latest -o cannon-builder.tar
docker save asterisc-builder:latest -o asterisc-builder.tar
- name: Archive Images
uses: actions/upload-artifact@v2
with:
name: images-${{ steps.prep.outputs.timestamp }}
path: |
cannon-builder.tar
asterisc-builder.tar
fpvm-example-tests:
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
matrix:
fpvm: ["cannon", "asterisc"]
name: ${{ matrix.fpvm }}-tests
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install Rust stable toolchain
uses: dtolnay/rust-toolchain@stable
- name: Setup Go toolchain
uses: actions/setup-go@v4
with:
go-version: "1.21.6"
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- uses: taiki-e/install-action@just
- name: Download Images
uses: actions/download-artifact@v4
with:
name: images-${{ needs.build-images.outputs.timestamp }}
- name: Load Image 1
run: |
docker load < ${{ matrix.fpvm }}-builder.tar
- name: Run FPVM tests
working-directory: ./fpvm-tests
run: just test-${{ matrix.fpvm }}