forked from liblouis/liblouis
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (46 loc) · 1.48 KB
/
main.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
name: Make check/distcheck
on:
workflow_dispatch:
push:
branches: [ master ]
paths-ignore:
- README
- NEWS
pull_request:
branches: [ master ]
permissions: # added using https://github.com/step-security/secure-workflows
contents: read
jobs:
build:
name: Build with ${{ matrix.ucs }}
runs-on: ubuntu-latest
strategy:
fail-fast: true # do not compile for ucs4 if ucs2 fails
matrix:
ucs: [ucs2, ucs4]
steps:
- name: Harden Runner
uses: step-security/harden-runner@cba0d00b1fc9a034e1e642ea0f1103c282990604 # v2.5.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Install dependencies
run: sudo apt-get update -qq && sudo apt-get install -y libyaml-dev texinfo texlive
- name: Autogen
run: ./autogen.sh
- name: Configure
run: ./configure
if: matrix.ucs == 'ucs2'
- name: Configure with ucs4
run: ./configure --enable-ucs4
if: matrix.ucs == 'ucs4'
- name: Make check
run: make check
- name: Store the test suite log
if: ${{ always() }} # store the test suite log even if the tests failed
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: test-suite-${{ matrix.ucs }}.log
path: tests/test-suite.log
- name: Make distcheck
run: make distcheck