-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (53 loc) · 1.56 KB
/
gpl-linux-arm64.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
name: GPL Linux ARM64 release
on:
release:
types: [published]
jobs:
build:
if: (github.repository == 'cvc5/cvc5')
strategy:
matrix:
include:
- name: shared
build-opts: --java-bindings
- name: static
build-opts: --static
name: ${{ matrix.name }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: "linux/arm64"
- name: Build cvc5
uses: docker/build-push-action@v5
with:
file: contrib/arm64-gpl.Dockerfile
context: ./
load: true
tags: cvc5-arm64-${{ matrix.name }}-gpl:latest
build-args: |
OTHER_OPTS=${{ matrix.build-opts }}
- name: Extract install directory
id: extract
uses: shrink/actions-docker-extract@v3
with:
image: cvc5-arm64-${{ matrix.name }}-gpl:latest
path: /cvc5/install
destination: ./
- name: Create ZIP file
id: create_zip
run: |
PACKAGE_NAME=cvc5-Linux-arm64-${{ matrix.name }}-gpl
mv install $PACKAGE_NAME
zip -r $PACKAGE_NAME $PACKAGE_NAME
echo "filepath=./$PACKAGE_NAME.zip" >> $GITHUB_OUTPUT
echo "release=$GITHUB_REF_NAME" >> $GITHUB_OUTPUT
- name: Upload ZIP file
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload ${{ steps.create_zip.outputs.release }} \
${{ steps.create_zip.outputs.filepath }} \
--repo $GITHUB_REPOSITORY