Skip to content

Commit

Permalink
move from Travis-CI to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
TG9541 authored Jul 5, 2022
1 parent 5aba766 commit d5ad679
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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/[email protected]
if: (! startsWith(github.ref, 'refs/tags/'))
with:
tag_name: volatile
files: |
out/stm8ef-bin.zip
out/stm8ef-bin.tgz
out/stm8ef-rst.tgz

0 comments on commit d5ad679

Please sign in to comment.