-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (34 loc) · 949 Bytes
/
rust-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
name: rust
on:
pull_request:
types: [opened, reopened, synchronize]
pull_request_target:
types: [closed]
jobs:
setup:
uses: ./.github/workflows/call-rust-setup.yml
with:
workdir: "tests/rust/"
lint:
if: ${{ github.event.pull_request.merged != true }}
needs: setup
uses: ./.github/workflows/call-rust-lint.yml
with:
workdir: "tests/rust/"
build:
if: ${{ always() && needs.setup.result == 'success' && needs.lint.result != 'failure' }}
needs: [setup, lint]
uses: ./.github/workflows/call-rust-build.yml
with:
workdir: "tests/rust/"
containeraized:
if: ${{ always() && github.event.pull_request.merged == true }}
needs: build
permissions:
contents: read
packages: write
uses: ./.github/workflows/call-containerize.yml
with:
version: ${{ needs.build.outputs.version }}
workdir: "tests/rust/"
target: "tests/rust/target/"