-
Notifications
You must be signed in to change notification settings - Fork 7
115 lines (103 loc) · 2.88 KB
/
Copy pathnightly.yml
File metadata and controls
115 lines (103 loc) · 2.88 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
name: Nightly Builds
on:
push:
branches:
- 'development'
workflow_dispatch:
permissions: write-all
jobs:
release:
name: Create Nightly Build
runs-on: ubuntu-latest
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
version: "nightly"
steps:
- name: Checkout Code
uses: actions/checkout@v6
with: { fetch-depth: 0 }
- name: Set Tag
id: tag
run: |
echo "version=nightly" >> "$GITHUB_OUTPUT"
- name: Update Tag
uses: richardsimko/update-tag@v2
with:
tag_name: "nightly"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v3
with:
tag_name: "nightly"
name: "clib4 nightly-builds"
draft: false
prerelease: true
generate_release_notes: true
target_commitish: development
body: >
Builds that include most recent changes as they happen. For non
nightly builds check the whole list of [releases](https://github.com/AmigaLabs/clib4/releases).
build_non_spe:
name: Build non-SPE
needs: release
runs-on: ubuntu-latest
container:
image: walkero/amigagccondocker:os4-gcc11
volumes:
- '${{ github.workspace }}:/opt/code'
steps:
- name: Checkout Code
uses: actions/checkout@v6
with: { fetch-depth: 0 }
- name: Compile clib4
uses: ./.github/actions/compile
with:
git_tag: ""
spe: "no"
nightly: "yes"
- name: Create the LHA release archive
run: |
make -f GNUmakefile.os4 release && \
mv clib4.lha clib4-nightly.lha
- name: Upload Files
uses: softprops/action-gh-release@v3
with:
tag_name: "nightly"
draft: false
prerelease: true
target_commitish: development
files: |
clib4-nightly.lha
build_spe:
name: Build SPE
needs: release
runs-on: ubuntu-latest
container:
image: walkero/amigagccondocker:os4-gcc6
volumes:
- '${{ github.workspace }}:/opt/code'
steps:
- name: Checkout Code
uses: actions/checkout@v6
with: { fetch-depth: 0 }
- name: Compile clib4
uses: ./.github/actions/compile
with:
git_tag: ""
spe: "yes"
nightly: "yes"
- name: Create the LHA release archive
run: |
make -f GNUmakefile.os4 release && \
mv clib4.lha clib4-nightly_SPE.lha
- name: Upload Files
uses: softprops/action-gh-release@v3
with:
tag_name: "nightly"
draft: false
prerelease: true
target_commitish: development
files: |
clib4-nightly_SPE.lha