Skip to content

Commit 8e1f254

Browse files
committed
ci(github): add nightly build ci
Signed-off-by: DragonBillow <[email protected]>
1 parent ad738ea commit 8e1f254

File tree

2 files changed

+21
-11
lines changed

2 files changed

+21
-11
lines changed

.github/workflows/gate.yml

-11
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v3
16-
with:
17-
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
18-
submodules: true
19-
fetch-depth: "0"
2016
- uses: awalsh128/cache-apt-pkgs-action@latest
2117
with:
2218
packages: make fonts-noto-cjk fonts-noto-cjk-extra
@@ -40,11 +36,4 @@ jobs:
4036
export RUST_LOG=DEBUG
4137
nix develop --impure --command bash -c "cargo run -- config.toml -o example/vscode_plugins.nix"
4238
cat example/vscode_plugins.nix
43-
# nix develop --impure --command bash -c "cd example && nix flake update"
4439
nix develop --impure --command bash -c "cd example && nix develop --build"
45-
# - uses: EndBug/add-and-commit@v9 # You can change this to use a specific version.
46-
# with:
47-
# author_name: DragonBillow
48-
# author_email: [email protected]
49-
# commit: --signoff
50-
# message: "feat(vscode): Update nix lock."

.github/workflows/nightly.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: "nightly"
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
schedule:
8+
- cron: "0 5 * * 1-5"
9+
10+
permissions:
11+
contents: write
12+
13+
jobs:
14+
nightly_build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
- uses: actions-rs/toolchain@v1
19+
with:
20+
toolchain: nightly
21+
- run: cargo +nightly build

0 commit comments

Comments
 (0)