Mercurial > crates > nonstick
annotate .github/workflows/build.yml @ 39:4a0b7b73b70f
retry part two
| author | Nigma <magnusgsvend@gmail.com> |
|---|---|
| date | Sun, 24 Jul 2022 02:10:12 +0200 |
| parents | a132009ecc5c |
| children | 75c4bd0b2769 |
| rev | line source |
|---|---|
|
33
86113e45f88f
Add Github actions to help manage PRs
Anthony Nowell <anthony.nowell@windriver.com>
parents:
diff
changeset
|
1 on: |
| 38 | 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 | 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: |
| 39 | 10 build: |
| 11 runs-on: ubuntu-latest | |
| 12 steps: | |
| 13 - name: Use cargo cache | |
| 14 uses: actions/cache@v2 | |
| 15 with: | |
| 16 path: | | |
| 17 ~/.cargo/bin/ | |
| 18 ~/.cargo/registry/index/ | |
| 19 ~/.cargo/registry/cache/ | |
| 20 ~/.cargo/git/db/ | |
| 21 target/ | |
| 22 key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| 23 - name: Install stable toolchain | |
| 24 uses: actions-rs/toolchain@v1 | |
| 25 with: | |
| 26 profile: minimal | |
| 27 toolchain: stable | |
| 28 override: true | |
| 29 - name: Publish module | |
| 30 uses: katyo/publish-crates@v1 | |
| 31 with: | |
| 32 registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} | |
| 33 check-repo: ${{ github.event_name == 'push' }} | |
| 34 ignore-unpublished-changes: true | |
| 35 # Only publish pam module, as pam-http and pam-sober are example projects | |
| 36 args: --package pam-bindings |
