generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (45 loc) · 1.32 KB
/
test.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
name: 'build-test'
on: # rebuild any PRs and main branch changes
pull_request:
push:
branches:
- main
- 'releases/*'
jobs:
build: # make sure build/ci work properly
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: "Checkout repository"
uses: actions/checkout@v4
- name: "Install dependencies"
run: npm install
- name: "Lint and build"
run: npm run all
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
include:
- os: windows-latest
path: "C:/msys64/mingw64/bin/"
steps:
- name: "Checkout repository"
uses: actions/checkout@v4
- name: "Setup ccache"
uses: ./
with:
key: "ccache-key"
cache_dir: ".ccache"
compiler_type: "auto"
path: ${{ matrix.path }}
- name: "Run with cmake"
uses: lukka/[email protected]
with:
cmakeListsTxtPath: '${{ github.workspace }}/examples/CMakeLists.txt'
cmakeAppendedArgs: '-D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache'
buildWithCmake: true
buildDirectory: '${{ github.workspace }}/examples/build'