.github/workflows/release.yaml #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |