-
Notifications
You must be signed in to change notification settings - Fork 12
42 lines (41 loc) · 1.48 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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