git.iko.soy/rowtype-yoga/package-sets
on master help sign in
CI: Revert to old CI setup for verifying packages
commit678424837dae3208b0b084f7b450a573f46dc90a authorThomas Honeyman <admin@thomashoneyman.com> dateTue 22 Dec 2020, 20:18 (6 years ago) parent4a33ff8
2 files changed+5−50
.github/workflows/main.yml+5−17 .github/workflows/update-packages.yml−33
.github/workflows/main.yml+5−17
@@ -1,12 +1,10 @@
1−name: Build the package set
1+name: build
22
33on:
44 push:
5− branches: [master]
6− # see ./update-packages.yml
7− workflow_run:
8− workflows:
9− - Update
5+ branches: master
6+ pull_request:
7+ branches: master
108
119jobs:
1210 tests:
@@ -18,15 +16,6 @@ jobs:
1816 with:
1917 nix_path: nixpkgs=channel:nixos-20.09
2018
21− - name: Generate packages.json file from the package set
22− run: nix-shell --run 'make generate'
23−
24− - name: Verify all packages are in the registry
25− run: nix-shell --run 'make verify-registry'
26−
27− - name: Verify all packages are compatible with psc-package
28− run: nix-shell --run 'make test-psc-package'
29−
3019 - uses: actions/cache@v2
3120 with:
3221 path: |
@@ -34,5 +23,4 @@ jobs:
3423 .psc-package
3524 key: ${{ runner.os }}-build-products
3625
37− - name: Verify all packages in the set build together
38− run: nix-shell --run 'cd src && spago verify-set'
26+ - run: nix-shell --run 'make ci'
.github/workflows/update-packages.ymldeleted−33
@@ -1,33 +0,0 @@
1−name: Update
2−
3−on:
4− pull_request:
5− branches: master
6−
7−jobs:
8− build:
9− runs-on: ubuntu-latest
10− steps:
11− - uses: actions/checkout@v2
12− with:
13− ref: ${{ github.event.pull_request.head.sha }}
14−
15− - uses: cachix/install-nix-action@v12
16− with:
17− nix_path: nixpkgs=channel:nixos-20.09
18−
19− - name: Generate packages.json file from the package set
20− id: generate-packages
21− run: |
22− nix-shell --run 'make generate'
23− echo ::set-output name=modified::$(if git diff --quiet; then echo "false"; else echo "true"; fi)
24−
25− - name: Commit and push modified files
26− if: steps.generate-packages.outputs.modified == 'true'
27− run: |
28− git config user.name github-actions
29− git config user.email github-actions@github.com
30−
31− git pull --ff-only
32− git commit -am "Update packages.json file"
33− git push