-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (34 loc) · 971 Bytes
/
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
name: Tests
on:
pull_request:
push:
branches:
- main
env:
SSH_KEY: /tmp/id_rsa
jobs:
build-binary:
# building on ubuntu-20.04 so we'll link to glibc 2.31 (bullseye+)
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
architecture: x64
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends -y python3-dev patchelf ccache build-essential
- name: Install python dependencies
run: |
pip install -U pip
pip install .[scripts,binary]
- name: Download aria2c
run: invoke download-aria2c
- name: Build binary
run: invoke binary --filename '/tmp/image-creator'
- name: Test binary is able to start
run: /tmp/image-creator -V