]> gitweb.factorcode.org Git - factor.git/blob - .github/workflows/build-test-core.yml
github: fix on windows.
[factor.git] / .github / workflows / build-test-core.yml
1 name: C/C++ CI
2
3 on:
4   push:
5     branches: [ master ]
6   pull_request:
7     branches: [ master ]
8
9 jobs:
10   build-linux:
11     runs-on: ubuntu-latest
12     steps:
13     - uses: actions/checkout@v2
14     - name: bootstrap
15       run: ./build.sh net-bootstrap
16     - name: load
17       run: './factor -e="USING: memory namespaces parser.notes vocabs.hierarchy ; parser-quiet? off \"resource:basis\" \"\" load-from-root save"'
18     - name: configure
19       run: './factor -e="USING: memory namespaces tools.test ; f long-unit-tests-enabled? set-global save"'
20     - name: test
21       run: './factor -run=tools.test resource:core'
22     - name: help-lint
23       run: './factor -run=help.lint resource:core resource:basis'
24
25   build-macos:
26     runs-on: macos-11
27     steps:
28     - uses: actions/checkout@v2
29     - name: build
30       run: arch -x86_64 ./build.sh net-bootstrap
31     - name: load
32       run: './factor -e="USING: memory namespaces parser.notes vocabs.hierarchy ; parser-quiet? off \"resource:basis\" \"\" load-from-root save"'
33     - name: configure
34       run: './factor -e="USING: memory namespaces tools.test ; f long-unit-tests-enabled? set-global save"'
35     - name: test
36       run: './factor -run=tools.test resource:core'
37     - name: help-lint
38       run: './factor -run=help.lint resource:core resource:basis'
39
40   build-windows:
41     runs-on: windows-latest
42     steps:
43     - uses: actions/checkout@v2
44     - name: build
45       shell: cmd
46       run: |
47         call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
48         build.cmd net-bootstrap
49     - name: load
50       shell: cmd
51       run: 'factor -e="USING: memory namespaces parser.notes vocabs.hierarchy ; parser-quiet? off \"resource:basis\" \"\" load-from-root save"'
52     - name: configure
53       shell: cmd
54       run: 'factor -e="USING: memory namespaces tools.test ; f long-unit-tests-enabled? set-global save"'
55     - name: test
56       shell: cmd
57       run: 'factor -run=tools.test resource:core'
58     - name: help-lint
59       shell: cmd
60       run: 'factor -run=help.lint resource:core resource:basis'