Mercurial > crates > nonstick
annotate .github/workflows/build.yml @ 41:3752ae9a130e
forgot to check out
author | Nigma <magnusgsvend@gmail.com> |
---|---|
date | Sun, 24 Jul 2022 02:12:29 +0200 |
parents | 75c4bd0b2769 |
children | 80d496e87f8f |
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: |
40 | 11 runs-on: ubuntu-latest |
12 steps: | |
41 | 13 - name: Checkout sources |
14 uses: actions/checkout@v2 | |
15 - name: Install PAM dev files | |
16 run: sudo apt-get install -y libpam0g-dev | |
40 | 17 - name: Use cargo cache |
18 uses: actions/cache@v2 | |
19 with: | |
20 path: | | |
21 ~/.cargo/bin/ | |
22 ~/.cargo/registry/index/ | |
23 ~/.cargo/registry/cache/ | |
24 ~/.cargo/git/db/ | |
25 target/ | |
26 key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
27 - name: Install stable toolchain | |
28 uses: actions-rs/toolchain@v1 | |
29 with: | |
30 profile: minimal | |
31 toolchain: stable | |
32 override: true | |
33 - name: Publish module | |
34 uses: katyo/publish-crates@v1 | |
35 with: | |
36 registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} | |
37 check-repo: ${{ github.event_name == 'push' }} | |
38 ignore-unpublished-changes: true | |
39 # Only publish pam module, as pam-http and pam-sober are example projects | |
40 args: --package pam-bindings |