fix(jinja): fix #10 #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "gate" | |
on: | |
pull_request: | |
push: | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
build: | |
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 | |
version: 1.0 | |
- name: Cache cargo | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/git/db/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
key: cargo_cache-${{ runner.os }} | |
- name: Install Nix | |
uses: cachix/install-nix-action@v18 | |
with: | |
extra_nix_config: | | |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | |
- name: Build Packages | |
run: | | |
mkdir -p public/ | |
export RUST_LOG=DEBUG | |
nix develop --impure --command bash -c "cargo run -- config.toml -o 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." |