From cf86e93bbcbccc2411c38da7fe0f70f3682d5818 Mon Sep 17 00:00:00 2001 From: Xithrius Date: Sun, 19 Sep 2021 01:08:36 -0700 Subject: [PATCH] Build/test across Linux/MacOS/Windows --- .github/workflows/build-test.yml | 16 +++++++++++++++- .github/workflows/catjam.yml | 4 ++++ .github/workflows/lint.yml | 1 + 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index efb1fbb..f523d5f 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -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 diff --git a/.github/workflows/catjam.yml b/.github/workflows/catjam.yml index 86cf493..5321605 100644 --- a/.github/workflows/catjam.yml +++ b/.github/workflows/catjam.yml @@ -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 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 7438aec..b277892 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,6 +10,7 @@ jobs: rustfmt: name: Formatter runs-on: ubuntu-latest + steps: - uses: actions/checkout@v2