comparison .github/workflows/build.yml @ 40:75c4bd0b2769

forgot two spaces
author Nigma <magnusgsvend@gmail.com>
date Sun, 24 Jul 2022 02:11:01 +0200
parents 4a0b7b73b70f
children 3752ae9a130e
comparison
equal deleted inserted replaced
39:4a0b7b73b70f 40:75c4bd0b2769
6 6
7 name: Build & publish 7 name: Build & publish
8 8
9 jobs: 9 jobs:
10 build: 10 build:
11 runs-on: ubuntu-latest 11 runs-on: ubuntu-latest
12 steps: 12 steps:
13 - name: Use cargo cache 13 - name: Use cargo cache
14 uses: actions/cache@v2 14 uses: actions/cache@v2
15 with: 15 with:
16 path: | 16 path: |
17 ~/.cargo/bin/ 17 ~/.cargo/bin/
18 ~/.cargo/registry/index/ 18 ~/.cargo/registry/index/
19 ~/.cargo/registry/cache/ 19 ~/.cargo/registry/cache/
20 ~/.cargo/git/db/ 20 ~/.cargo/git/db/
21 target/ 21 target/
22 key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} 22 key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
23 - name: Install stable toolchain 23 - name: Install stable toolchain
24 uses: actions-rs/toolchain@v1 24 uses: actions-rs/toolchain@v1
25 with: 25 with:
26 profile: minimal 26 profile: minimal
27 toolchain: stable 27 toolchain: stable
28 override: true 28 override: true
29 - name: Publish module 29 - name: Publish module
30 uses: katyo/publish-crates@v1 30 uses: katyo/publish-crates@v1
31 with: 31 with:
32 registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} 32 registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
33 check-repo: ${{ github.event_name == 'push' }} 33 check-repo: ${{ github.event_name == 'push' }}
34 ignore-unpublished-changes: true 34 ignore-unpublished-changes: true
35 # Only publish pam module, as pam-http and pam-sober are example projects 35 # Only publish pam module, as pam-http and pam-sober are example projects
36 args: --package pam-bindings 36 args: --package pam-bindings