Skip to content

Commit 798ab47

Browse files
committed
chore: initial commit
0 parents  commit 798ab47

File tree

22 files changed

+4119
-0
lines changed

22 files changed

+4119
-0
lines changed

.cargo/config.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[unstable]
2+
bindeps = true

.github/dependabot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "cargo"
4+
directory: "/"
5+
schedule:
6+
interval: "monthly"
7+
open-pull-requests-limit: 3
8+
groups:
9+
all-dependencies:
10+
patterns:
11+
- "*"
12+
13+
- package-ecosystem: "github-actions"
14+
directory: "/"
15+
schedule:
16+
interval: "monthly"

.github/workflows/ci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
test:
14+
name: Test
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: checkout code
18+
uses: actions/checkout@v5
19+
20+
- name: install rust toolchain
21+
uses: dtolnay/rust-toolchain@nightly
22+
with:
23+
targets: x86_64-unknown-uefi, x86_64-unknown-linux-musl
24+
components: clippy, rustfmt
25+
26+
- name: cache rust toolchain
27+
uses: Swatinem/rust-cache@v2
28+
29+
- name: cargo deny
30+
uses: EmbarkStudios/cargo-deny-action@v2
31+
32+
- name: cargo fmt
33+
run: cargo fmt --all -- --check
34+
35+
- name: cargo clippy
36+
run: cargo clippy --target x86_64-unknown-uefi --bins -- -D warnings
37+
38+
- name: cargo build
39+
run: |
40+
cargo build --release --target x86_64-unknown-linux-musl
41+
42+
- name: upload artifacts
43+
uses: actions/upload-artifact@v4
44+
with:
45+
name: uefi-reset
46+
path: target/x86_64-unknown-linux-musl/release/dispatch

.github/workflows/release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
name: Create Release
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: checkout code
17+
uses: actions/checkout@v5
18+
19+
- name: install rust toolchain
20+
uses: dtolnay/rust-toolchain@nightly
21+
with:
22+
targets: x86_64-unknown-uefi, x86_64-unknown-linux-musl
23+
24+
- name: cache rust toolchain
25+
uses: Swatinem/rust-cache@v2
26+
27+
- name: cargo build
28+
run: cargo build --release --target x86_64-unknown-linux-musl
29+
30+
- name: create release
31+
env:
32+
GH_TOKEN: ${{ github.token }}
33+
run: |
34+
gh release delete --yes ${{ github.ref_name }} || true
35+
gh release create --generate-notes ${{ github.ref_name }} target/x86_64-unknown-linux-musl/release/dispatch
36+

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
target/

0 commit comments

Comments
 (0)