-
Notifications
You must be signed in to change notification settings - Fork 28
96 lines (83 loc) · 2.17 KB
/
release-alpine.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: Build Alpine Package
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
container:
image: alpine:latest
env:
TARGET_ARCH: x86_64
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install dependencies
run: |
apk add --no-cache \
alpine-sdk \
cmake \
sudo \
git \
curl \
bash \
build-base \
boost-dev \
gmp-dev \
abuild
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
architecture: 'x64'
- name: Install dependencies
run: |
python -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install sympy==1.12.1 cairo-lang==0.12.0
shell: bash
- name: Change ownership of /github/home
run: sudo chown -R $(whoami) /github/home
- name: Build
run: |
chmod +x ./alpine-build.sh
./alpine-build.sh
- name: Test
run: |
chmod +x ./test.sh
./test.sh
- name: Create Alpine package
run: |
chmod +x ./package_alpine.sh
./package_alpine.sh ${{ github.ref_name }}
- name: Upload Alpine package
uses: actions/upload-artifact@v3
with:
name: stone-prover-alpine-package
path: /tmp/packages/main/x86_64/*.apk
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: /tmp/packages/main/x86_64/stone-prover-*.apk
asset_name: stone-prover-alpine-${{ github.ref }}.apk
asset_content_type: application/vnd.alpine.linux.apk