Skip to content

Build and release ZINC with ez80asm #9

Build and release ZINC with ez80asm

Build and release ZINC with ez80asm #9

Workflow file for this run

name: build-system
run-name: Build and release ZINC with ez80asm
on:
push:
branches: [ main ]
jobs:
create-release:
runs-on: [ubuntu-latest]
container: nihirash/ez80asm:x64
steps:
- uses: actions/checkout@v4
- name: Fix ownership
run: chown -R $(id -u):$(id -g) $PWD
- name: Build OS from sources using dockerized sjasmplus
run: make
- name: Read version
id: version
run: echo "version=$(cat .version)" >> $GITHUB_OUTPUT
- name: Pack release
run: zip -j zinc.zip zinc.bin zinc-setup.bin
- name: Release
id: create_release
uses: actions/create-release@v1
with:
draft: false
prerelease: false
release_name: CI build ${{ steps.version.outputs.version }}
tag_name: ${{ steps.version.outputs.version }}
body_path: CHANGELOG.md
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Upload artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: "zinc.zip"
asset_name: "zinc.zip"
asset_content_type: "application/octet-stream"