Skip to content

Commit 475e53b

Browse files
committed
Added github workflow to create PR artifacts and release on tag
1 parent c756236 commit 475e53b

File tree

2 files changed

+55
-3
lines changed

2 files changed

+55
-3
lines changed

.github/workflows/ci.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
fail-fast: false
16+
17+
container:
18+
image: fozztexx/defoogi:1.4.2
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- name: Build release files
24+
run: make release
25+
26+
# PR case: normal artifact upload
27+
- name: Upload artifacts
28+
uses: actions/upload-artifact@v4
29+
with:
30+
name: dist
31+
path: dist/**
32+
33+
tagged-release:
34+
runs-on: ubuntu-latest
35+
needs: build
36+
steps:
37+
- uses: actions/checkout@v4
38+
39+
- name: Download all artifacts
40+
uses: actions/download-artifact@v4
41+
with:
42+
path: dist
43+
44+
- name: Create Github Release
45+
uses: softprops/action-gh-release@v1
46+
if: startsWith(github.ref, 'refs/tags/')
47+
with:
48+
files: dist/**
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
# Set the TARGETS and PROGRAM values as required.
44
# See makefiles/build.mk for details on directory structure for src files and how to add custom extensions to the build.
55

6-
TARGETS = adam atari c64 apple2 apple2enh apple2gs coco
7-
# TARGETS = pmd85
8-
# TARGETS = msdos
6+
TARGETS = adam atari c64 apple2 coco
7+
# TARGETS += apple2enh # obsolete, removed from cc65
8+
# TARGETS += apple2gs
9+
# TARGETS += pmd85
10+
# TARGETS += msdos
911
PROGRAM := fujinet.lib
1012

1113
SUB_TASKS := clean disk test release unit-test

0 commit comments

Comments
 (0)