-
Notifications
You must be signed in to change notification settings - Fork 32
36 lines (33 loc) · 1.3 KB
/
build.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
name: Build & Test
on: [pull_request, push]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-20.04
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: 'true'
container:
image: ubuntu:18.04
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: install dependencies
run: |
apt-get update
apt-get install -y wget curl make zip git gcc software-properties-common cmake g++ openjdk-8-jdk jq
apt-get clean
- name: install python 3.10
run: |
apt-get install -y build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev
wget https://www.python.org/ftp/python/3.10.14/Python-3.10.14.tgz
tar -xvf Python-3.10.14.tgz
cd Python-3.10.14 && ./configure --enable-optimizations --with-ensurepip=install --enable-shared --prefix=/usr/local LDFLAGS="-Wl,--rpath=/usr/local/lib" && make -j 4 && make install
- name: build
run: |
pip3 install -r requirements.txt
make dist
- name: upload artifact
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: perfspect
path: dist/perfspect*.tgz