From d5ad679199ccbcb68f78a5365c51d3a5cbbf43a8 Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 5 Jul 2022 17:35:12 +0200 Subject: [PATCH] move from Travis-CI to GitHub Actions --- .github/workflows/build.yml | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 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..6dca1d9 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,42 @@ +name: build +on: [push] +jobs: + Build-Test-Release: + runs-on: ubuntu-latest + container: tg9541/docker-sdcc:V3.9.0 + steps: + - run: | + echo "triggered by: ${{ github.event_name }}" + echo "repository: ${{ github.repository }}" + echo "branch name: ${{ github.ref }}" + - name: Check out repository code + uses: actions/checkout@v2 + - name: Build and test + run: | + make depend + echo "; ##########################################" >> forth.asm + echo "; # Release info added by GitHub action:" >> forth.asm + echo "; # repository: ${{ github.repository }}" >> forth.asm + echo "; # branch name: ${{ github.ref }}" >> forth.asm + echo "; # sha: ${{ github.sha }}" >> forth.asm + echo "; ##########################################" >> forth.asm + make release + echo "Job status: ${{ job.status }}." + - name: GH Release + uses: softprops/action-gh-release@v0.1.14 + if: startsWith(github.ref, 'refs/tags/') + with: + files: | + out/stm8ef-bin.zip + out/stm8ef-bin.tgz + out/stm8ef-rst.tgz + - name: Keep non-release binaries + uses: softprops/action-gh-release@v0.1.14 + if: (! startsWith(github.ref, 'refs/tags/')) + with: + tag_name: volatile + files: | + out/stm8ef-bin.zip + out/stm8ef-bin.tgz + out/stm8ef-rst.tgz +