-
Notifications
You must be signed in to change notification settings - Fork 4
53 lines (41 loc) · 1.04 KB
/
linux.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
name: Linux x86_64
on:
push:
paths-ignore:
- '**.md'
- 'LICENSE'
- '.github/**'
- '!.github/workflows/linux.yml'
pull_request:
paths-ignore:
- '**.md'
- 'LICENSE'
- '.github/**'
- '!.github/workflows/linux.yml'
jobs:
linux:
runs-on: ubuntu-latest
env:
REPO_NAME: sunwalker_box
steps:
- name: Clone.
uses: actions/[email protected]
with:
submodules: recursive
path: ${{ env.REPO_NAME }}
- name: Build.
run: |
cd $REPO_NAME
docker build --tag sunwalker_box .
id="$(docker create sunwalker_box .)"
docker cp sunwalker_box:/sunwalker_box sunwalker_box
- name: Tests.
run: |
cd $REPO_NAME
sudo apt install python3 python3-yaml musl-tools libc6-dev
sudo make test
- uses: actions/upload-artifact@master
name: Upload artifact.
with:
name: ${{ env.ARTIFACT_NAME }}
path: ${{ env.REPO_NAME }}/sunwalker_box