-
Notifications
You must be signed in to change notification settings - Fork 3
58 lines (48 loc) · 1.46 KB
/
build-sys.yaml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Build fujinet.sys
on:
push:
branches:
- main
paths:
- 'sys/**'
- 'fujicom/**'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Get short SHA
id: short-sha
run: echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Git Safe Directory
run: git config --global --add safe.directory ${{ github.workspace }}
- name: Setup Watcom
uses: open-watcom/setup-watcom@v0
with:
version: "2.0"
target: dos
- name: Build fujicom
working-directory: fujicom/
run: make
- name: Build fujinet.sys
working-directory: sys/
run: |
make
cp fujinet.sys fujinet-${{ steps.short-sha.outputs.sha }}.sys
- name: Bump version and push tag
id: tag-version
uses: laputansoft/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
uses: softprops/action-gh-release@v2
with:
body: |
`fujinet.sys` MS-DOS driver for RS232 FujiNet
tag_name: ${{ steps.tag-version.outputs.new_tag }}
prerelease: true
files: ${{ github.workspace }}/sys/fujinet-${{ steps.short-sha.outputs.sha }}.sys
generate_release_notes: true
make_latest: true