-
Notifications
You must be signed in to change notification settings - Fork 4
56 lines (45 loc) · 1.17 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
54
55
56
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 $id:/sunwalker_box sunwalker_box
- name: Tests dependencies.
run: |
sudo apt install make python3.11 python3-yaml musl-tools libc6-dev
sudo ln -sf /bin/python3.11 /bin/python3
- name: Tests.
run: |
cd $REPO_NAME
cat /proc/meminfo
sudo make test
- uses: actions/upload-artifact@master
name: Upload artifact.
with:
name: ${{ env.ARTIFACT_NAME }}
path: ${{ env.REPO_NAME }}/sunwalker_box