math.primes: make prime? safe from non-integer inputs #719
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
permissions: | |
contents: read | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: bootstrap | |
run: ./build.sh net-bootstrap | |
- name: load-all | |
run: './factor -e="USING: compiler.errors memory namespaces parser.notes syntax vocabs.hierarchy ; parser-quiet? off auto-use? off load-all save compiler-errors get assoc-empty? 0 1 ? exit"' | |
- name: test | |
run: './factor -run=tools.test resource:core' | |
- name: help-lint | |
run: './factor -run=help.lint resource:core resource:basis resource:extra' | |
build-macos: | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: build | |
run: arch -x86_64 ./build.sh net-bootstrap | |
- name: load-all | |
run: './factor -e="USING: compiler.errors memory namespaces parser.notes syntax vocabs.hierarchy ; parser-quiet? off auto-use? off load-all save compiler-errors get assoc-empty? 0 1 ? exit"' | |
- name: test | |
run: './factor -run=tools.test resource:core' | |
- name: help-lint | |
run: './factor -run=help.lint resource:core resource:basis resource:extra' | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ilammy/msvc-dev-cmd@v1 | |
- name: build | |
shell: cmd | |
run: build.cmd compile | |
- name: build-report | |
run: 'Foreach ($f in Get-ChildItem *.exe,*.com,*.dll) { "{0} {1}" -f (Split-Path -Path $f -Leaf),$f.Length }' | |
- name: bootstrap | |
run: | | |
.\build.cmd update-boot-image | |
.\build.cmd bootstrap | |
- name: load-all | |
shell: cmd | |
run: 'factor -e="USING: compiler.errors memory namespaces parser.notes syntax vocabs.hierarchy ; parser-quiet? off auto-use? off load-all save compiler-errors get assoc-empty? 0 1 ? exit"' | |
- name: test | |
shell: cmd | |
run: 'factor -run=tools.test resource:core' | |
- name: help-lint | |
shell: cmd | |
run: 'factor -run=help.lint resource:core resource:basis resource:extra' |