-
Notifications
You must be signed in to change notification settings - Fork 68
58 lines (52 loc) · 1.51 KB
/
release.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: "Cargo-geiger Release Builder"
on:
workflow_dispatch:
inputs:
tag:
description: 'Release tag'
required: true
type: string
permissions:
contents: write
jobs:
matrix:
name: Generate Matrix
runs-on: ubuntu-latest
outputs:
matrix-json: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v2
with:
path: release-repo
- id: set-matrix
run: |
content=`cat ./release-repo/matrix.json`
# the following lines are only required for multi line json
content="${content//'%'/'%25'}"
content="${content//$'\n'/'%0A'}"
content="${content//$'\r'/'%0D'}"
# end of optional handling for multi line json
echo "::set-output name=matrix::$content"
build:
needs: [matrix]
uses: rinse-repeat/auditable-builder/.github/workflows/rust-builder.yml@main
with:
repository: geiger-rs/cargo-geiger
rust-target: ${{ matrix.rust-target }}
os: ${{ matrix.os }}
rust: ${{ matrix.rust }}
use-features: ${{ matrix.use-features }}
use-cache: true
use-locked: true
serial: AAB
zig-version: 0.9.1
strategy:
fail-fast: false
matrix:
include: ${{ fromJson(needs.matrix.outputs.matrix-json) }}
release:
needs: [build]
uses: rinse-repeat/auditable-builder/.github/workflows/release-builder.yml@main
with:
repository: geiger-rs/cargo-geiger
tag: ${{ github.event.inputs.tag }}