-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (66 loc) · 2.1 KB
/
Copy pathwindows-tinytest.yaml
File metadata and controls
79 lines (66 loc) · 2.1 KB
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
77
78
79
on:
push:
branches: [main, windows_support, soundness]
pull_request:
workflow_dispatch:
name: windows-tinytest
permissions: read-all
jobs:
windows-tinytest:
runs-on: windows-latest
name: windows-latest (release, tinytest)
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
r-version: release
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::tinytest
- name: Install package from working tree
shell: bash
run: |
R CMD INSTALL --preclean .
- name: Run tinytest package suite via R -e
id: tinytest
shell: bash
run: |
R -e "tinytest::test_package('Rtinycc', testdir = 'inst/tinytest')"
- name: Reinstall debug build for post-mortem
if: failure() && steps.tinytest.outcome == 'failure'
shell: bash
run: |
RTINYCC_DEBUG_BUILD=1 R CMD INSTALL --preclean .
- name: GDB repro around union crash
if: failure() && steps.tinytest.outcome == 'failure'
shell: bash
run: |
chmod +x scripts/win-gdb.sh
export RTINYCC_GDB_BREAK_FINALIZERS=1
export RTINYCC_TRACE_FINALIZERS=1
scripts/win-gdb.sh pkgfiles \
inst/tinytest/test_structs.R \
inst/tinytest/test_tcc_options.R \
inst/tinytest/test_treesitter_helpers.R \
inst/tinytest/test_typed_readwrite.R \
inst/tinytest/test_unions.R \
2>&1 | tee windows-gdb-union.log
- name: Upload Windows debug logs
if: always()
uses: actions/upload-artifact@v4
with:
name: windows-tinytest-logs
path: |
windows-gdb-union.log
config.log
src/*.o
src/*.dll
src/*.exe
inst/tinycc/lib/*.dll
inst/tinycc/lib/*.def
if-no-files-found: ignore