]> gitweb.factorcode.org Git - factor.git/blob - .github/workflows/build-test-core.yml
github: try and test basis to see what fails on github.
[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: dependencies
15       run: |
16         sudo apt-get update
17     - name: bootstrap
18       run: ./build.sh net-bootstrap
19     - name: load
20       run: './factor -e="USING: memory namespaces parser.notes vocabs.hierarchy ; parser-quiet? off \"resource:basis\" \"\" load-from-root save"'
21     - name: configure
22       run: './factor -e="USING: memory namespaces tools.test ; f long-unit-tests-enabled? set-global save"'
23     - name: test
24       run: './factor -run=tools.test resource:core resource:basis'
25     - name: help-lint
26       run: './factor -run=help.lint resource:core resource:basis'
27
28   build-macos:
29     runs-on: macos-11
30     steps:
31     - uses: actions/checkout@v2
32     - name: build
33       run: arch -x86_64 ./build.sh net-bootstrap
34     - name: load
35       run: './factor -e="USING: memory namespaces parser.notes vocabs.hierarchy ; parser-quiet? off \"resource:basis\" \"\" load-from-root save"'
36     - name: configure
37       run: './factor -e="USING: memory namespaces tools.test ; f long-unit-tests-enabled? set-global save"'
38     - name: test
39       run: './factor -run=tools.test resource:core'
40     - name: help-lint
41       run: './factor -run=help.lint resource:core resource:basis'
42
43   build-windows:
44     runs-on: windows-latest
45     steps:
46     - uses: actions/checkout@v2
47     - name: build
48       shell: cmd
49       run: |
50         call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
51         build.cmd net-bootstrap
52     - name: load
53       shell: cmd
54       run: 'factor -e="USING: memory namespaces parser.notes vocabs.hierarchy ; parser-quiet? off \"resource:basis\" \"\" load-from-root save"'
55     - name: configure
56       shell: cmd
57       run: 'factor -e="USING: memory namespaces tools.test ; f long-unit-tests-enabled? set-global save"'
58     - name: test
59       shell: cmd
60       run: 'factor -run=tools.test resource:core'
61     - name: help-lint
62       shell: cmd
63       run: 'factor -run=help.lint resource:core resource:basis'