-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 1.3 KB
/
release.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
on:
release:
types: [published]
permissions:
contents: write
jobs:
upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Pull submodules
run: git submodule update --init --recursive
- name: Set up Meson and Ninja
run: |
sudo apt-get update
sudo apt-get install -y meson ninja-build build-essential
- name: Build
run: |
LDFLAGS='-static' meson setup build --optimization 3 -Db_ndebug=true --warnlevel 3 --werror
ninja -C build
strip -s build/oicompare
- name: Test
run: |
ninja -C build test
- name: Build sioworkers box
run: |
mkdir -p oicompare-sandbox/bin
cp build/oicompare oicompare-sandbox/bin
mv oicompare-sandbox oicompare-sandbox-${{ github.event.release.tag_name }}
tar -czvf oicompare-sandbox-${{ github.event.release.tag_name }}.tar.gz oicompare-sandbox-${{ github.event.release.tag_name }}
- name: Upload to release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload ${{ github.event.release.tag_name }} build/oicompare
gh release upload ${{ github.event.release.tag_name }} oicompare-sandbox-${{ github.event.release.tag_name }}.tar.gz