comparison .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
comparison
equal deleted inserted replaced
38:a132009ecc5c 39:4a0b7b73b70f
5 workflow_call: 5 workflow_call:
6 6
7 name: Build & publish 7 name: Build & publish
8 8
9 jobs: 9 jobs:
10 build: 10 build:
11 needs: check 11 runs-on: ubuntu-latest
12 runs-on: ubuntu-latest 12 steps:
13 steps: 13 - name: Use cargo cache
14 - name: Use cargo cache 14 uses: actions/cache@v2
15 uses: actions/cache@v2 15 with:
16 with: 16 path: |
17 path: | 17 ~/.cargo/bin/
18 ~/.cargo/bin/ 18 ~/.cargo/registry/index/
19 ~/.cargo/registry/index/ 19 ~/.cargo/registry/cache/
20 ~/.cargo/registry/cache/ 20 ~/.cargo/git/db/
21 ~/.cargo/git/db/ 21 target/
22 target/ 22 key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
23 key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} 23 - name: Install stable toolchain
24 24 uses: actions-rs/toolchain@v1
25 - name: Install stable toolchain 25 with:
26 uses: actions-rs/toolchain@v1 26 profile: minimal
27 with: 27 toolchain: stable
28 profile: minimal 28 override: true
29 toolchain: stable 29 - name: Publish module
30 override: true 30 uses: katyo/publish-crates@v1
31 - name: Publish module 31 with:
32 uses: katyo/publish-crates@v1 32 registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
33 with: 33 check-repo: ${{ github.event_name == 'push' }}
34 registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} 34 ignore-unpublished-changes: true
35 check-repo: ${{ github.event_name == 'push' }} 35 # Only publish pam module, as pam-http and pam-sober are example projects
36 ignore-unpublished-changes: true 36 args: --package pam-bindings
37 # Only publish pam module, as pam-http and pam-sober are example projects
38 args: --package pam-bindings