Skip to content

Commit

Permalink
ci(github): add nightly build ci
Browse files Browse the repository at this point in the history
Signed-off-by: DragonBillow <[email protected]>
  • Loading branch information
cathaysia committed Feb 2, 2024
1 parent 6cd5204 commit 56fc556
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
submodules: true
fetch-depth: "0"
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: make fonts-noto-cjk fonts-noto-cjk-extra
Expand All @@ -40,11 +36,4 @@ jobs:
export RUST_LOG=DEBUG
nix develop --impure --command bash -c "cargo run -- config.toml -o example/vscode_plugins.nix"
cat example/vscode_plugins.nix
# nix develop --impure --command bash -c "cd example && nix flake update"
nix develop --impure --command bash -c "cd example && nix develop --build"
# - uses: EndBug/add-and-commit@v9 # You can change this to use a specific version.
# with:
# author_name: DragonBillow
# author_email: [email protected]
# commit: --signoff
# message: "feat(vscode): Update nix lock."
21 changes: 21 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "nightly"

on:
workflow_dispatch:
pull_request:
push:
schedule:
- cron: "0 5 * * 1-5"

permissions:
contents: write

jobs:
nightly_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
- run: cargo +nightly build

0 comments on commit 56fc556

Please sign in to comment.