This repository was archived by the owner on Jan 23, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
76 lines (59 loc) · 1.68 KB
/
c.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
75
76
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: C CI
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: read
defaults:
run:
shell: bash
jobs:
build:
name: Build ${{ matrix.build_type }} on ubuntu-latest
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
build_type: [release]
steps:
- name: Harden Runner
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
with:
egress-policy: audit
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
submodules: recursive
- uses: libsdl-org/setup-sdl@0b4058be1a69a43f9875e9a17f41e636495f5852 # main
id: sdl
with:
install-linux-dependencies: true
build-type: Release
version: 3-latest
- name: ccache
uses: hendrikmuhs/ccache-action@ed74d11c0b343532753ecead8a951bb09bb34bc9 # v1.2.14
with:
create-symlink: true
key: ${{ matrix.build_type }}
# - name: configure
# run: ./configure
# - name: make ${{ matrix.build_type }}
# run: make ${{ matrix.build_type }}
# - name: make check
# run: make check
# - name: make distcheck
# run: make distcheck
- name: Build ${{ matrix.build_type }}
run: TERM=xterm ./build.sh ${{ matrix.build_type }}