From d3478d2d101d1f4f1035311dad77343bcb5db698 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Nogueira?= Date: Wed, 28 Aug 2024 13:02:17 -0300 Subject: [PATCH] ci: add workflow for static binary. The CI workflow will test that building the IOC is always working. The resulting tarball for tags will also be published in the project's release page. We used the softprops/action-gh-release action because it was recommended by the now unmantained official action, actions/upload-release-asset [1]. [1] https://github.com/actions/upload-release-asset --- .github/workflows/build.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..27cd926 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,18 @@ +name: IOC build and release +permissions: + contents: write +on: + push: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Build + run: docker compose up + - name: Release + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') + with: + files: rffe-epics-ioc-*.tar.gz