-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (34 loc) · 1.03 KB
/
build.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
38
39
40
on: [push]
jobs:
build:
name: build (${{ matrix.os }})
strategy:
matrix:
include:
- os: ubuntu-latest
label: linux-x64
container: quay.io/pypa/manylinux2014_x86_64
- os: macos-14
label: macos-arm64
- os: macos-latest
label: macos-x64
runs-on: ${{ matrix.os }}
container: ${{ matrix.container }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run make
run: make
- name: Add execute permission
run: chmod +x ./flexiplex
- name: Tar files
run: tar -cvf ./result.tar ./flexiplex
- name: Get short SHA
id: vars
run: git config --global --add safe.directory '*' && echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Save artifacts
uses: actions/upload-artifact@v3
with:
name: build-${{ steps.vars.outputs.sha_short }}-${{ matrix.label }}
path: ./result.tar
retention-days: 90