-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (55 loc) · 1.44 KB
/
build.yml
File metadata and controls
67 lines (55 loc) · 1.44 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
# SPDX-FileCopyrightText: 2020-2026 Dimitris Panokostas
# SPDX-License-Identifier: GPL-3.0-or-later
name: Build Amiberry Host Tools
on:
push:
branches:
- master
tags:
- 'v*'
pull_request:
branches:
- master
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
container: sacredbanana/amiga-compiler:m68k-amigaos
steps:
- name: Checkout repository
uses: actions/checkout@v6.0.2
- name: Build tools
run: make all
- name: Run tests
run: make test
- name: Package tools
run: |
if [ "${{ github.ref_type }}" = "tag" ]; then
VERSION="${{ github.ref_name }}"
else
VERSION="latest"
fi
make package PACKAGE="Host-Tools-${VERSION}.lha"
- name: Upload Artifacts
uses: actions/upload-artifact@v7.0.1
with:
name: host-tools-package
path: "*.lha"
release:
needs: build
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Download Artifacts
uses: actions/download-artifact@v8.0.1
with:
name: host-tools-package
- name: Create Release
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
run: gh release create ${{ github.ref_name }} *.lha --title "Host-Tools ${{ github.ref_name }}" --generate-notes