mirror of
https://github.com/NotAShelf/stash.git
synced 2026-04-12 22:17:41 +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
9
.github/dependabot.yaml
vendored
9
.github/dependabot.yaml
vendored
|
|
@ -1,6 +1,13 @@
|
||||||
version: 2
|
version: 2
|
||||||
updates:
|
updates:
|
||||||
- package-ecosystem: "cargo"
|
# Update Cargo deps
|
||||||
|
- package-ecosystem: cargo
|
||||||
directory: "/"
|
directory: "/"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "weekly"
|
interval: "weekly"
|
||||||
|
|
||||||
|
# Update used workflows
|
||||||
|
- package-ecosystem: github-actions
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: daily
|
||||||
|
|
|
||||||
29
.github/workflows/nix-cache.yaml
vendored
29
.github/workflows/nix-cache.yaml
vendored
|
|
@ -1,19 +1,28 @@
|
||||||
name: "Populate cachix cache"
|
name: "Populate cachix cache"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ "main" ]
|
||||||
paths: [ 'src/**.rs', 'Cargo.toml', 'Cargo.lock', 'nix/package.nix' ]
|
paths: [ 'src/**.rs', 'Cargo.toml', 'Cargo.lock', 'nix/package.nix' ]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
populate-cache:
|
populate-cache:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: "CHeckout"
|
||||||
- uses: cachix/install-nix-action@v25
|
uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
- uses: cachix/install-nix-action@v25
|
||||||
- uses: cachix/cachix-action@v14
|
with:
|
||||||
with:
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
name: nyx
|
|
||||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
- uses: cachix/cachix-action@v14
|
||||||
- run: nix build
|
with:
|
||||||
|
name: nyx
|
||||||
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||||
|
|
||||||
|
- run: nix build
|
||||||
|
|
|
||||||
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
|
|
@ -39,7 +39,7 @@ jobs:
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
|
|
||||||
15
.github/workflows/rust.yml
vendored
15
.github/workflows/rust.yml
vendored
|
|
@ -1,10 +1,13 @@
|
||||||
name: Build with Cargo
|
name: Build with Cargo
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
pull_request:
|
paths: [ "src/**.rs", "Cargo.toml", "Cargo.lock"]
|
||||||
branches: [ "main" ]
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
@ -13,6 +16,8 @@ jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout
|
||||||
- name: Build
|
uses: actions/checkout@v5
|
||||||
run: cargo build --verbose
|
|
||||||
|
- name: Build
|
||||||
|
run: cargo build --verbose
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue