Build/test across Linux/MacOS/Windows

This commit is contained in:
Xithrius 2021-09-19 01:08:36 -07:00
parent aa788a0b26
commit cf86e93bbc
No known key found for this signature in database
GPG Key ID: BD0FC909FA912B62
3 changed files with 20 additions and 1 deletions

View File

@ -11,12 +11,26 @@ env:
jobs:
build:
strategy:
fail-fast: false
runs-on: ubuntu-latest
matrix:
os:
- { prettyname: Windows, fullname: windows-latest }
- { prettyname: macOS, fullname: macos-latest }
- { prettyname: Linux, fullname: ubuntu-latest }
threadingMode: [ 'SingleThread', 'MultiThreaded' ]
timeout-minutes: 60
runs-on: ${{matrix.os.fullname}}
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

View File

@ -8,12 +8,16 @@ on:
jobs:
thanks:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
steps:
- name: comment PR
uses: unsplash/comment-on-pr@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
msg: "![cat](https://cdn.discordapp.com/emojis/750350748746907669.gif?v=1)"
check_for_duplicate_msg: true

View File

@ -10,6 +10,7 @@ jobs:
rustfmt:
name: Formatter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2