File tree Expand file tree Collapse file tree 7 files changed +17
-22
lines changed
Expand file tree Collapse file tree 7 files changed +17
-22
lines changed Original file line number Diff line number Diff line change @@ -37,13 +37,13 @@ jobs:
3737 - name : Get new version number
3838 run : echo "version_number=$(grep -E '^version' package.yaml | cut -d' ' -f2)" >> $GITHUB_ENV
3939 - name : Run pre-commit hooks
40- run : nix build '.#runChecks'
40+ run : nix flake check
4141 - name : Build nix-bootstrap
4242 run : nix build
4343 - name : Check for vulnerabilities
44- run : nix run .\#ciPackages.vulnix -- -C -w vulnerability-whitelist.toml result/
44+ run : nix run .\#ciPackages_vulnix -- -C -w vulnerability-whitelist.toml result/
4545 - name : Build release artefact
46- run : nix run .\#ciPackages.buildBinaryCache
46+ run : nix run .\#ciPackages_buildBinaryCache
4747 - uses : actions/upload-artifact@v4
4848 with :
4949 name : " release-${{ env.version_number }}"
Original file line number Diff line number Diff line change 3131 (git fetch --all && git diff "$(git describe --tags --abbrev=0)" -- package.yaml | grep version) ||
3232 (echo "You must bump the nix-bootstrap version number in package.yaml!" && exit 1)
3333 - name : Run pre-commit hooks
34- run : nix build '.#runChecks'
34+ run : nix flake check
3535 - name : Build nix-bootstrap
3636 run : nix build
3737 - name : Check for vulnerabilities
38- run : nix run .\#ciPackages.vulnix -- -C -w vulnerability-whitelist.toml result/
38+ run : nix run .\#ciPackages_vulnix -- -C -w vulnerability-whitelist.toml result/
Original file line number Diff line number Diff line change 1- Last exported commit from parent repo: 7bde353a888c3babcd2738d8e7157fadf8878d25
1+ Last exported commit from parent repo: aaa042431723bcf4d4cd9f7d28cf59290a4350c7
Original file line number Diff line number Diff line change 5959 } ;
6060 in {
6161 checks = { pre-commit-check = pre-commit-hooks . pureHooks ; } ;
62- defaultPackage = self . packages . ${ system } . default ;
63- devShell = self . devShells . ${ system } . default ;
6462 devShells = {
6563 default = nixpkgs . mkShell ( {
6664 buildInputs =
8482 default = nix-bootstrap ;
8583 inherit nix-bootstrap ;
8684 # To be used as tools in CI
87- ciPackages = {
88- inherit buildBinaryCache ;
89- inherit ( nixpkgs ) vulnix ;
90- } ;
91- # runChecks is a hack required to allow checks to run on a single system
92- # when using Import from Deviation (https://discourse.nixos.org/t/nix-flake-check-for-current-system-only/18366)
93- # Building it is the single-system equivalent of running "nix flake check".
94- runChecks = nixpkgs . runCommand "run-checks" {
95- currentSystemChecks = builtins . attrValues self . checks . ${ system } ;
96- } "echo $currentSystemChecks; touch $out" ;
85+ ciPackages_buildBinaryCache = buildBinaryCache ;
86+ ciPackages_vulnix = nixpkgs . vulnix ;
9787 } ;
9888 }
9989 ) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ cabal-version: 2.0
55-- see: https://github.com/sol/hpack
66
77name : nix-bootstrap
8- version : 2.2.2.0
8+ version : 2.2.2.1
99author : gchquser
1010maintainer : 48051938+sd234678@users.noreply.github.com
1111copyright : Crown Copyright
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414name : nix-bootstrap
15- version : 2.2.2.0
15+ version : 2.2.2.1
1616author : gchquser
1717maintainer : 48051938+sd234678@users.noreply.github.com
1818copyright : Crown Copyright
You can’t perform that action at this time.
0 commit comments