Build fujinet.sys #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |