-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (52 loc) · 1.62 KB
/
release-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Check release
on:
push:
branches:
- "release/**"
# TODO!: We might want to do it manually? Not sure.
# workflow_dispatch:
# inputs:
# crate:
# description: Crate to release
# required: true
# type: choice
# options:
# - aes256ctr_poly1305aes
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
determine-package:
name: Determine package to release
runs-on: ubuntu-latest
outputs:
package: ${{ steps.determine-package-name.outputs.package }}
steps:
- name: Determine package
id: determine-package-name
run: |
if [[ ${{ github.ref }} == *"aes256ctr_poly1305aes"* ]]; then
echo "package=aes256ctr_poly1305aes" >> $GITHUB_OUTPUT
fi
semver-check:
name: Check SemVer
runs-on: ubuntu-latest
needs: determine-package
strategy:
matrix:
rust: [stable]
job:
- os: ubuntu-latest
# - os: windows-latest # Panics
# - os: macos-latest # Panics
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@1482605bfc5719782e1267fd0c0cc350fe7646b8 # v1
with:
toolchain: stable
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2
- name: Check semver
uses: obi1kenobi/cargo-semver-checks-action@7272cc2caa468d3e009a2b0a9cc366839348237b # v2
with:
package: ${{ needs.determine-package.outputs.package }}