Skip to content

Predictable artifact order #116

Predictable artifact order

Predictable artifact order #116

Workflow file for this run

name: "Build"
on:
push:
branches:
- master
pull_request:
jobs:
test-bootstrap:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.2
- uses: cachix/install-nix-action@v20
- uses: cachix/cachix-action@v8
with:
name: fzakaria
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- run: nix-build -A mvn2nix-bootstrap
- run: ./result/bin/mvn2nix > mvn2nix-lock.json
- run: nix-build -A buildMavenRepositoryFromLockFile --arg file "./mvn2nix-lock.json"
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.2
- uses: cachix/install-nix-action@v20
- uses: cachix/cachix-action@v8
with:
name: fzakaria
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- run: nix-build -A mvn2nix
- run: ./result/bin/mvn2nix > mvn2nix-lock.json
- run: nix-build -A buildMavenRepositoryFromLockFile --arg file "./mvn2nix-lock.json"
flake-test-bootstrap:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v20
with:
extra_nix_config: experimental-features = nix-command flakes
- uses: cachix/cachix-action@v8
with:
name: fzakaria
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- run: nix run .#mvn2nix-bootstrap > mvn2nix-lock.json
- run: nix build -f . buildMavenRepositoryFromLockFile --arg file "./mvn2nix-lock.json"
flake-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.2
- uses: cachix/install-nix-action@v20
with:
extra_nix_config: experimental-features = nix-command flakes
- uses: cachix/cachix-action@v8
with:
name: fzakaria
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- run: nix build
- run: ./result/bin/mvn2nix > mvn2nix-lock.json
- run: nix build -f . buildMavenRepositoryFromLockFile --arg file "./mvn2nix-lock.json"