Skip to content

Commit

Permalink
github actions corrected (#2)
Browse files Browse the repository at this point in the history
* github actions corrected
  • Loading branch information
nihirash committed Dec 10, 2023
1 parent adfc10b commit 83e538d
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 11 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/build-system.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ name: build-system
run-name: Build operating system with sjasmplus
on:
push:
tags:
- '*'
branches: [ main ]
jobs:
build-sources:
create-release:
runs-on: [ubuntu-latest]
container: nihirash/sjasmplus:x64
steps:
Expand All @@ -16,15 +15,22 @@ jobs:

- name: Build OS from sources using dockerized sjasmplus
run: (cd system && make)

- name: Pack release
run: (cd system && zip release.zip cpm.\$c)

- name: Read version
id: version
run: echo "version=$(cat system/.version)" >> $GITHUB_OUTPUT

- name: Release

id: create_release
uses: actions/create-release@v1
with:
draft: false
prerelease: false
release_name: CI build ${{ github.ref }}
tag_name: ${{ github.ref }}
release_name: CI build ${{ steps.version.outputs.version }} ${{ github.ref }}
tag_name: ${{ steps.version.outputs.version }}
body_path: CHANGELOG.md
env:
GITHUB_TOKEN: ${{ github.token }}
Expand All @@ -35,6 +41,7 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: "./system/cpm.$c"
asset_name: "CP/M as Hobeta file"
asset_path: "./system/release.zip"
asset_name: "release.zip"
asset_content_type: "application/zip"

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ cpm.trd
.DS_Store
*.zx7
page*.bin
git_commit
git_commit
.version
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
Initial system release
# Initial public version

Built with next features:
- ADM-3A emulation on Profi's screen (85 characters per row)
- +3E volumes as CP/M drives via Z-controller
- ZiFi-compatible Uart accessible via IOBYTE
- Loadable as TR-Dos binary
5 changes: 4 additions & 1 deletion system/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ page3.zx7: page3.bin
page7.zx7: page7.bin
$(PACKER) page7.bin page7.zx7

page3.bin page7.bin: $(SOURCES) $(BLOBS) config.z80
page3.bin page7.bin: $(SOURCES) $(BLOBS) config.z80 .version
git rev-parse --short HEAD >git_commit
$(ASM) $(FLAGS) cpm.z80

.version:
date '+%Y.%m.%d' >.version

all: cpm.\$$c

clean:
Expand Down

0 comments on commit 83e538d

Please sign in to comment.