Skip to content

Commit

Permalink
fix devshell
Browse files Browse the repository at this point in the history
  • Loading branch information
TornaxO7 committed Apr 14, 2024
1 parent a1fc3e4 commit 6fd9d41
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 7 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/flake-lock-updater.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: update-flake-lock
on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: '0 0 * * 0' # runs weekly on Sunday at 00:00

jobs:
lockfile:
runs-on: ubuntu-latest
steps:
- uses: TornaxO7/rust-template@v1-ci-actions
- name: Update flake.lock
id: update-flake-lock
run: nix flake update
- name: Commit updated flake.lock
if: |
steps.update-flake-lock.outputs.modified == 'true' &&
github.event.pull_request.head.repo.full_name == github.repository
run: |
git config --global user.name 'Github Actions'
git config --global user.email '<>'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git commit -am "Automated formatting"
git push
10 changes: 3 additions & 7 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,9 @@
let
rust-toolchain = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
in
pkgs.mkShell.override
{
stdenv = pkgs.stdenvAdapters.useMoldLinker pkgs.clangStdenv;
}
{
packages = [ rust-toolchain ];
};
pkgs.mkShell {
packages = [ rust-toolchain ];
};
};
};
}

0 comments on commit 6fd9d41

Please sign in to comment.