annotate .github/workflows/build.yml @ 38:a132009ecc5c

retry
author Nigma <magnusgsvend@gmail.com>
date Sun, 24 Jul 2022 02:09:31 +0200
parents d1f0c1cf3c6e
children 4a0b7b73b70f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
33
86113e45f88f Add Github actions to help manage PRs
Anthony Nowell <anthony.nowell@windriver.com>
parents:
diff changeset
1 on:
38
Nigma <magnusgsvend@gmail.com>
parents: 36
diff changeset
2 push:
33
86113e45f88f Add Github actions to help manage PRs
Anthony Nowell <anthony.nowell@windriver.com>
parents:
diff changeset
3 branches:
86113e45f88f Add Github actions to help manage PRs
Anthony Nowell <anthony.nowell@windriver.com>
parents:
diff changeset
4 - master
86113e45f88f Add Github actions to help manage PRs
Anthony Nowell <anthony.nowell@windriver.com>
parents:
diff changeset
5 workflow_call:
86113e45f88f Add Github actions to help manage PRs
Anthony Nowell <anthony.nowell@windriver.com>
parents:
diff changeset
6
38
Nigma <magnusgsvend@gmail.com>
parents: 36
diff changeset
7 name: Build & publish
33
86113e45f88f Add Github actions to help manage PRs
Anthony Nowell <anthony.nowell@windriver.com>
parents:
diff changeset
8
86113e45f88f Add Github actions to help manage PRs
Anthony Nowell <anthony.nowell@windriver.com>
parents:
diff changeset
9 jobs:
38
Nigma <magnusgsvend@gmail.com>
parents: 36
diff changeset
10 build:
36
d1f0c1cf3c6e Github actions publish crate
Nigma <magnusgsvend@gmail.com>
parents: 33
diff changeset
11 needs: check
d1f0c1cf3c6e Github actions publish crate
Nigma <magnusgsvend@gmail.com>
parents: 33
diff changeset
12 runs-on: ubuntu-latest
d1f0c1cf3c6e Github actions publish crate
Nigma <magnusgsvend@gmail.com>
parents: 33
diff changeset
13 steps:
d1f0c1cf3c6e Github actions publish crate
Nigma <magnusgsvend@gmail.com>
parents: 33
diff changeset
14 - name: Use cargo cache
d1f0c1cf3c6e Github actions publish crate
Nigma <magnusgsvend@gmail.com>
parents: 33
diff changeset
15 uses: actions/cache@v2
d1f0c1cf3c6e Github actions publish crate
Nigma <magnusgsvend@gmail.com>
parents: 33
diff changeset
16 with:
d1f0c1cf3c6e Github actions publish crate
Nigma <magnusgsvend@gmail.com>
parents: 33
diff changeset
17 path: |
d1f0c1cf3c6e Github actions publish crate
Nigma <magnusgsvend@gmail.com>
parents: 33
diff changeset
18 ~/.cargo/bin/
d1f0c1cf3c6e Github actions publish crate
Nigma <magnusgsvend@gmail.com>
parents: 33
diff changeset
19 ~/.cargo/registry/index/
d1f0c1cf3c6e Github actions publish crate
Nigma <magnusgsvend@gmail.com>
parents: 33
diff changeset
20 ~/.cargo/registry/cache/
d1f0c1cf3c6e Github actions publish crate
Nigma <magnusgsvend@gmail.com>
parents: 33
diff changeset
21 ~/.cargo/git/db/
d1f0c1cf3c6e Github actions publish crate
Nigma <magnusgsvend@gmail.com>
parents: 33
diff changeset
22 target/
d1f0c1cf3c6e Github actions publish crate
Nigma <magnusgsvend@gmail.com>
parents: 33
diff changeset
23 key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
33
86113e45f88f Add Github actions to help manage PRs
Anthony Nowell <anthony.nowell@windriver.com>
parents:
diff changeset
24
36
d1f0c1cf3c6e Github actions publish crate
Nigma <magnusgsvend@gmail.com>
parents: 33
diff changeset
25 - name: Install stable toolchain
d1f0c1cf3c6e Github actions publish crate
Nigma <magnusgsvend@gmail.com>
parents: 33
diff changeset
26 uses: actions-rs/toolchain@v1
d1f0c1cf3c6e Github actions publish crate
Nigma <magnusgsvend@gmail.com>
parents: 33
diff changeset
27 with:
d1f0c1cf3c6e Github actions publish crate
Nigma <magnusgsvend@gmail.com>
parents: 33
diff changeset
28 profile: minimal
d1f0c1cf3c6e Github actions publish crate
Nigma <magnusgsvend@gmail.com>
parents: 33
diff changeset
29 toolchain: stable
d1f0c1cf3c6e Github actions publish crate
Nigma <magnusgsvend@gmail.com>
parents: 33
diff changeset
30 override: true
d1f0c1cf3c6e Github actions publish crate
Nigma <magnusgsvend@gmail.com>
parents: 33
diff changeset
31 - name: Publish module
d1f0c1cf3c6e Github actions publish crate
Nigma <magnusgsvend@gmail.com>
parents: 33
diff changeset
32 uses: katyo/publish-crates@v1
d1f0c1cf3c6e Github actions publish crate
Nigma <magnusgsvend@gmail.com>
parents: 33
diff changeset
33 with:
d1f0c1cf3c6e Github actions publish crate
Nigma <magnusgsvend@gmail.com>
parents: 33
diff changeset
34 registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
d1f0c1cf3c6e Github actions publish crate
Nigma <magnusgsvend@gmail.com>
parents: 33
diff changeset
35 check-repo: ${{ github.event_name == 'push' }}
d1f0c1cf3c6e Github actions publish crate
Nigma <magnusgsvend@gmail.com>
parents: 33
diff changeset
36 ignore-unpublished-changes: true
d1f0c1cf3c6e Github actions publish crate
Nigma <magnusgsvend@gmail.com>
parents: 33
diff changeset
37 # Only publish pam module, as pam-http and pam-sober are example projects
38
Nigma <magnusgsvend@gmail.com>
parents: 36
diff changeset
38 args: --package pam-bindings