Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve checks naming #598

Merged
merged 3 commits into from
May 1, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 28 additions & 4 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -3,13 +3,37 @@ name: Checks
on: [push, pull_request]

jobs:
check_tag:
name: Tag name
outputs:
tagged: ${{ steps.check_tagged.outputs.is_tagged }}
runs-on: ubuntu-latest
steps:
- name: Check the ref
id: check_tagged
run: |
set -x
if [[ ${{ github.ref }} == refs/tags/* ]]; then
echo "::set-output name=is_tagged::tagged"
else
echo "::set-output name=is_tagged::"
fi
tests:
name: ${{ matrix.name }} ${{ matrix.BUILD_TYPE }}
needs:
- check_tag
name: ${{ matrix.name }} ${{ needs.check_tag.outputs.tagged }} ${{ matrix.BUILD_TYPE }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
BUILD_TYPE: [check, build]
BUILD_TYPE:
- check
- build
os:
- ubuntu-latest
- macos-latest
- windows-latest

include:
- os: ubuntu-latest
name: Ubuntu
@@ -35,7 +59,7 @@ jobs:
CARGO_REGISTRY_DIR: C:\Rust\.cargo\registry
ANKI_PYTHON_WHEELS: anki_windows_python_wheels

# Keep running all matrices if something fail
# Keep all systems running if something fails
fail-fast: false

steps: