Skip to content

.github/workflows/release.yaml #5

.github/workflows/release.yaml

.github/workflows/release.yaml #5

Workflow file for this run

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
tar -czvf oicompare-sandbox-${{ github.event.release.tag_name }}.tar.gz oicompare-sandbox
- 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