mirror of
https://github.com/NotAShelf/stash.git
synced 2026-04-13 06:23:47 +00:00
meta: add workflow perms; fix broken workflows
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I6a6a6964ea7f970a8a9040ca994bfe6aabecb408
This commit is contained in:
parent
383731e47c
commit
4aa6ef94d8
4 changed files with 38 additions and 17 deletions
15
.github/workflows/rust.yml
vendored
15
.github/workflows/rust.yml
vendored
|
|
@ -1,10 +1,13 @@
|
|||
name: Build with Cargo
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
paths: [ "src/**.rs", "Cargo.toml", "Cargo.lock"]
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
|
@ -13,6 +16,8 @@ jobs:
|
|||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Build
|
||||
run: cargo build --verbose
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Build
|
||||
run: cargo build --verbose
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue