-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (66 loc) · 2.06 KB
/
continuous-integration.yml
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
name: Continuous Integration
on:
push:
branches: ["*"]
tags-ignore: ["*"]
pull_request:
branches: ["*"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
Cmake:
name: ${{ matrix.config.display_name }}
runs-on: ${{ matrix.config.runner }}
strategy:
fail-fast: false
matrix:
config:
-
display_name: "WATCOM 2.0 (stable)"
runner: "ubuntu-22.04"
shell: "bash"
watcom_version: "2.0"
watcom_tag: "2024-10-03-Build"
cmake_preset: "ci-watcom-dev"
build_suffix: "watcom-2.0-stable"
-
display_name: "WATCOM 2.0 (master)"
runner: "ubuntu-22.04"
shell: "bash"
watcom_version: "2.0"
watcom_tag: "last"
cmake_preset: "ci-watcom-dev"
build_suffix: "watcom-2.0-master"
defaults:
run:
shell: ${{ matrix.config.shell }}
steps:
- uses: open-watcom/setup-watcom@v0
with:
version: ${{ matrix.config.watcom_version }}
tag: ${{ matrix.config.watcom_tag }}
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure & Build
id: configure
# env:
# CC: ${{ matrix.config.compiler_name }}
run: |
export MAKEFLAGS=--keep-going
cmake --workflow --preset "${{ matrix.config.cmake_preset }}"
git_version=$(cmake -P ./cmake/scripts/UpdateRevision.cmake "git" 2>&1)
echo "version=$git_version" >> $GITHUB_OUTPUT
- name: Install
if: |
github.repository == 'Russian-Doom/russian-doom-dos'
run: |
cmake --install build --prefix "./build/install"
- name: Package Zip
if: |
github.repository == 'Russian-Doom/russian-doom-dos'
uses: actions/upload-artifact@v4
with:
name: russian-doom-dos-${{ steps.configure.outputs.version }}-${{ matrix.config.build_suffix }}
path: ./build/install/