-
Notifications
You must be signed in to change notification settings - Fork 9
72 lines (71 loc) · 1.96 KB
/
cd_rawrrassembly.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: CD RawrrAssembly
on:
# TODO important remove before actually merging
pull_request:
branches: [ devel ]
workflow_dispatch:
env:
DOTNET_DOCKER: mcr.microsoft.com/dotnet/sdk:8.0
jobs:
build:
name: Build Assembly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Pull image
run: docker pull $DOTNET_DOCKER
- name: Build
run: cd inst/rawrrassembly && docker run --rm -v $PWD:/app -w /app $DOTNET_DOCKER /app/build.sh /app /app/out
- name: Publish results
uses: actions/upload-artifact@v4
with:
name: rawrr
path: inst/rawrrassembly/out
# TODO for development
retention-days: 1
verify-linux:
name: Verify on Linux
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- name: Download results
uses: actions/download-artifact@v4
with:
name: rawrr
- name: List result
run: tree
- name: Make executable
run: chmod +x rawrr-linux-x64
- name: Execute on test file
run: ./rawrr-linux-x64 ./inst/extdata/sample.raw index
verify-windows:
name: Verify on Windows
runs-on: windows-latest
needs: build
steps:
- uses: actions/checkout@v4
- name: Download results
uses: actions/download-artifact@v4
with:
name: rawrr
- name: List result
run: dir
- name: Execute on test file
run: .\rawrr-win-x64.exe .\inst\extdata\sample.raw index
verify-macos:
name: Verify on MacOS
runs-on: macos-latest
needs: build
steps:
- uses: actions/checkout@v4
- name: Download results
uses: actions/download-artifact@v4
with:
name: rawrr
- name: List result
run: ls -l
- name: Make executable
run: chmod +x rawrr-osx-x64
- name: Execute on test file
run: ./rawrr-osx-x64 ./inst/extdata/sample.raw index