mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 23:42:23 -04:00
Fixed tagged builds names not showing they are tagged
This commit is contained in:
parent
24113c81ec
commit
0e6cddb3ae
1 changed files with 28 additions and 4 deletions
32
.github/workflows/checks.yml
vendored
32
.github/workflows/checks.yml
vendored
|
@ -3,13 +3,37 @@ name: Checks
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
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:
|
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 }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ ubuntu-latest, macos-latest, windows-latest ]
|
BUILD_TYPE:
|
||||||
BUILD_TYPE: [check, build]
|
- check
|
||||||
|
- build
|
||||||
|
os:
|
||||||
|
- ubuntu-latest
|
||||||
|
- macos-latest
|
||||||
|
- windows-latest
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
name: Ubuntu
|
name: Ubuntu
|
||||||
|
@ -35,7 +59,7 @@ jobs:
|
||||||
CARGO_REGISTRY_DIR: C:\Rust\.cargo\registry
|
CARGO_REGISTRY_DIR: C:\Rust\.cargo\registry
|
||||||
ANKI_PYTHON_WHEELS: anki_windows_python_wheels
|
ANKI_PYTHON_WHEELS: anki_windows_python_wheels
|
||||||
|
|
||||||
# Keep running all matrices if something fail
|
# Keep all systems running if something fails
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
Loading…
Reference in a new issue