Repository navigation
140 lines (119 loc) · 6.03 KB
/
Copy pathmakefile.yml
File metadata and controls
140 lines (119 loc) · 6.03 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
# Copyright 2023-2026 Dimitris Panokostas
name: Makefile CI
on:
push:
branches: [ "master" ]
tags:
- 'v*'
- '[0-9]+.[0-9]+*'
pull_request:
branches: [ "master" ]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ftp-tests:
runs-on: ubuntu-latest
name: ftp-host-tests
steps:
- uses: actions/checkout@v6
- name: Install SFTP test dependencies
run: sudo apt-get update && sudo apt-get install -y libssh2-1-dev pkg-config
- name: Run FTP host tests
run: |
make -C source/Modules/ftp -f makefile.tests test
make -C source/Modules/ftp -f makefile.tests test-libssh2
aros-debug-build:
needs: ftp-tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform:
- { name: i386-aros, image: "midwan/aros-compiler:i386-aros" }
- { name: x86_64-aros, image: "midwan/aros-compiler:x86_64-aros" }
name: aros-debug-build-${{ matrix.platform.name }}
steps:
- uses: actions/checkout@v6
- name: Clean DEBUG build (${{ matrix.platform.name }})
run: |
docker run --rm -v ${{ github.workspace }}:/work ${{ matrix.platform.image }} sh -c "cd /work/source && make ${{ matrix.platform.name }} clean && make ${{ matrix.platform.name }} all debug=yes"
build:
needs: ftp-tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# Pin tested Amiga toolchains by digest: tags are mutable, so an
# upstream rebuild must not silently change release compilers.
# Validate replacements with debug/release builds and LHA packaging.
# os3 / os3-68000: amigadev/crosstools:m68k-amigaos (GCC 16.2.1b,
# AmigaDev 16.2-rc24-9, binutils 2.47.20260726). Binutils
# 2.46.0.20260504 relocated the base load of LTO library-call stubs
# against the code hunk; the verify-os3-stubs step below fails such
# a build.
# os3, os3-68000 and os4 are pinned to the amd64 child manifest digest
# (runners are amd64): runners failed to resolve the multi-arch
# manifest-list digest with "manifest unknown" even while the
# registry served it.
# os4: amigadev/crosstools:ppc-amigaos (GCC 11.5.0, AmiSSL + codesets).
# mos: amigadev/crosstools:ppc-morphos (GCC 15.2.0, codesets)
platform:
- { name: os3, image: "amigadev/crosstools@sha256:550aef7dfe73d973acc24b02362dbe0ce1adaf09dd27ebfa0d2c368ef111978e" }
- { name: os3-68000, image: "amigadev/crosstools@sha256:550aef7dfe73d973acc24b02362dbe0ce1adaf09dd27ebfa0d2c368ef111978e" }
- { name: os4, image: "amigadev/crosstools@sha256:0a8e052ab1553c46e2acaa7839e5f1c5acf4b778f76da4d6685aa50692bd5314" }
- { name: mos, image: "amigadev/crosstools@sha256:c5f0078722ace9139cd44e56838df369d7ca465fe49768ecf15a8e8cefe703de" }
- { name: i386-aros, image: "midwan/aros-compiler:i386-aros" }
- { name: x86_64-aros, image: "midwan/aros-compiler:x86_64-aros" }
- { name: aarch64-aros, image: "midwan/aros-compiler:aarch64-aros" }
variant:
- { name: debug, flags: "", suffix: "_debug" }
- { name: release, flags: "debug=no", suffix: "" }
name: build-${{ matrix.platform.name }}-${{ matrix.variant.name }}
steps:
- uses: actions/checkout@v6
# The AROS images have no FlexCat; compile the catalogs (the same files
# for every target) in the os3 image, so release-package finds them up
# to date.
- name: Build catalogs (${{ matrix.platform.name }})
if: endsWith(matrix.platform.name, '-aros')
run: |
docker run --rm -v ${{ github.workspace }}:/work amigadev/crosstools@sha256:550aef7dfe73d973acc24b02362dbe0ce1adaf09dd27ebfa0d2c368ef111978e sh -c "cd /work/source && make ${{ matrix.platform.name }} catalogs"
- name: Build (${{ matrix.platform.name }} ${{ matrix.variant.name }})
run: |
docker run --rm -v ${{ github.workspace }}:/work ${{ matrix.platform.image }} sh -c "cd /work/source && make ${{ matrix.platform.name }} all ${{ matrix.variant.flags }}"
docker run --rm -v ${{ github.workspace }}:/work ${{ matrix.platform.image }} sh -c "cd /work/source && make ${{ matrix.platform.name }} release-package ${{ matrix.variant.flags }}"
- name: Verify AROS aarch64 loader relocations (${{ matrix.variant.name }})
if: matrix.platform.name == 'aarch64-aros'
run: |
docker run --rm -v ${{ github.workspace }}:/work ${{ matrix.platform.image }} sh -c "cd /work/source && make verify-aarch64-aros ${{ matrix.variant.flags }}"
- name: Verify OS3 library-call stubs (${{ matrix.variant.name }})
if: startsWith(matrix.platform.name, 'os3')
run: |
docker run --rm -v ${{ github.workspace }}:/work ${{ matrix.platform.image }} sh -c "cd /work/source && make ${{ matrix.platform.name }} verify-os3-stubs ${{ matrix.variant.flags }}"
- uses: actions/upload-artifact@v7
with:
name: DOpus5_${{ matrix.platform.name }}${{ matrix.variant.suffix }}
path: releases/DOpus5_*_${{ matrix.platform.name }}*.lha
if-no-files-found: error
release:
needs: [build, aros-debug-build]
runs-on: ubuntu-latest
permissions:
contents: write
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
steps:
- name: Download all artifacts
uses: actions/download-artifact@v8
with:
path: artifacts
merge-multiple: true
- name: Create release
uses: ncipollo/release-action@v1
with:
artifacts: "artifacts/DOpus5_*_os3.lha,artifacts/DOpus5_*_os3-68000.lha,artifacts/DOpus5_*_os4.lha,artifacts/DOpus5_*_mos.lha,artifacts/DOpus5_*_i386-aros.lha,artifacts/DOpus5_*_x86_64-aros.lha,artifacts/DOpus5_*_aarch64-aros.lha"
generateReleaseNotes: true
allowUpdates: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}