-
Notifications
You must be signed in to change notification settings - Fork 10
36 lines (29 loc) · 944 Bytes
/
main.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: Main CI Workflow
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
tags: '*'
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Cleanup
run: sudo rm -rf "/usr/local/share/boost" "$AGENT_TOOLSDIRECTORY"
- name: Install prerequisites
run: sudo apt install make curl zip unzip check -qq
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Build
run: sudo make
- name: Upload artifacts
if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: |
artifacts="-a ./void-x86_64.zip -a ./void-x86_64-musl.zip -a ./void-aarch64.zip -a void-aarch64-musl.zip"
tag_name="${GITHUB_REF#refs/tags/}"
hub release create $artifacts -m "$tag_name" "$tag_name"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}