-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (63 loc) · 2.1 KB
/
build_and_test.yaml
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
# ----------------------------------------------------------------------
# |
# | build_and_test.yaml
# |
# | David Brownell <[email protected]>
# | 2023-12-27 11:22:25
# |
# ----------------------------------------------------------------------
# |
# | Copyright David Brownell 2023
# | Distributed under the Boost Software License, Version 1.0. See
# | accompanying file LICENSE_1_0.txt or copy at
# | http://www.boost.org/LICENSE_1_0.txt.
# |
# ----------------------------------------------------------------------
name: "Build and Test"
run-name: ${{ github.run_number }} [${{ github.actor }}] on ${{ github.ref_name }}
on:
pull_request:
branches:
- main
push:
branches:
- main
schedule:
- cron: '0 0 * * *' # Once a day at 12am UTC
workflow_dispatch:
jobs:
build_and_test:
name: "Build and Test"
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
runs-on: ${{ matrix.os }}
env:
COLUMNS: "200"
SIMULATE_TERMINAL_CAPABILITIES_SUPPORTS_COLORS: "1"
PYTHONIOENCODING: "UTF-8"
steps:
# Ensure that windows machines support long paths
- name: git Long File Path Support on Windows
if: ${{ startsWith(matrix.os, 'windows') }}
run: |-
git config --system core.longpaths true
- name: "Checkout Source"
uses: actions/checkout@v4
- name: "Initialize"
id: initialize
uses: ./.github/actions/initialize
with:
operating_system: ${{ matrix.os }}
- name: Build and Test
uses: ./.github/actions/build_and_test
with:
operating_system: ${{ matrix.os }}
script_prefix: ${{ steps.initialize.outputs.script_prefix }}
script_extension: ${{ steps.initialize.outputs.script_extension }}
shell_name: ${{ steps.initialize.outputs.shell_name }}
source_command: ${{ steps.initialize.outputs.source_command }}
sudo_command: ${{ steps.initialize.outputs.sudo_command }}