-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (44 loc) · 1.17 KB
/
CI.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
name: CI
on:
workflow_dispatch:
pull_request:
jobs:
build-linux:
name: Build linux binaries
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install apt dependencies
run: sudo apt update -y && sudo apt install -y minify
- name: Build
run: ./build.sh
- name: Upload results
uses: actions/upload-artifact@v3
with:
name: ampm-linux-binaries
if-no-files-found: error
path: |
dist/ampm.tar.gz
dist/get_ampm.sh
test-linux:
name: Test linux binaries
runs-on: ubuntu-22.04
timeout-minutes: 10
container: python:3
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: Install apt dependencies
run: apt update -y && apt install -y libtirpc3 python3-pip rpcbind
- name: Install dependencies
run: python3 -m pip install pytest
- name: Run rpcbind
run: rpcbind
- name: Run Tests
run: ./run-tests.sh