]> gitweb.factorcode.org Git - factor.git/blob - .github/workflows/build.yml
ci: add minimum GitHub token permissions for workflow
[factor.git] / .github / workflows / build.yml
1 name: Build
2
3 on:
4   push:
5     branches: [ master ]
6   pull_request:
7     branches: [ master ]
8
9 permissions:
10   contents: read
11
12 jobs:
13   build-linux:
14     runs-on: ubuntu-latest
15     steps:
16     - uses: actions/checkout@v2
17     - name: bootstrap
18       run: ./build.sh net-bootstrap
19     - name: load-all
20       run: './factor -e="USING: memory namespaces parser.notes vocabs.hierarchy ; parser-quiet? off load-all save"'
21     - name: test
22       run: './factor -run=tools.test resource:core'
23     - name: help-lint
24       run: './factor -run=help.lint resource:core resource:basis'
25
26   build-macos:
27     runs-on: macos-11
28     steps:
29     - uses: actions/checkout@v2
30     - name: build
31       run: arch -x86_64 ./build.sh net-bootstrap
32     - name: load-all
33       run: './factor -e="USING: memory namespaces parser.notes vocabs.hierarchy ; parser-quiet? off load-all save"'
34     - name: test
35       run: './factor -run=tools.test resource:core'
36     - name: help-lint
37       run: './factor -run=help.lint resource:core resource:basis'
38
39   build-windows:
40     runs-on: windows-latest
41     steps:
42     - uses: actions/checkout@v2
43     - uses: ilammy/msvc-dev-cmd@v1
44     - name: build
45       shell: cmd
46       run: build.cmd net-bootstrap
47     - name: load-all
48       shell: cmd
49       run: 'factor -e="USING: memory namespaces parser.notes vocabs.hierarchy ; parser-quiet? off load-all save"'
50     - name: test
51       shell: cmd
52       run: 'factor -run=tools.test resource:core'