|
6 | 6 | type: [ synchronize ]
|
7 | 7 |
|
8 | 8 | jobs:
|
9 |
| - build: |
10 |
| - strategy: |
11 |
| - matrix: |
12 |
| - os: |
13 |
| - - runner: "macos-latest" |
14 |
| - build-script: "nix-build -A dhall-secret.components.exes.dhall-secret" |
15 |
| - - runner: "ubuntu-latest" |
16 |
| - build-script: "nix-build -A projectCross.musl64.hsPkgs.dhall-secret.components.exes.dhall-secret" |
17 |
| - name: build on ${{ matrix.os.runner }} |
18 |
| - runs-on: ${{ matrix.os.runner }} |
19 |
| - if: "!contains(github.event.head_commit.message, 'ci skip')" |
20 |
| - steps: |
21 |
| - - uses: actions/checkout@v2 |
22 |
| - - uses: dhall-lang/setup-dhall@v4 |
23 |
| - - uses: cachix/install-nix-action@v18 |
24 |
| - with: |
25 |
| - nix_path: nixpkgs=channel:nixos-22.05 |
26 |
| - extra_nix_config: | |
27 |
| - trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= |
28 |
| - substituters = https://cache.iog.io https://hydra.iohk.io https://cache.nixos.org/ |
29 |
| - - uses: cachix/cachix-action@v10 |
30 |
| - with: |
31 |
| - name: jcouyang |
32 |
| - authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' |
33 |
| - - name: Test |
34 |
| - run: nix-build -A dhall-secret.components.tests |
35 |
| - - run: | |
36 |
| - VERSION=$(dhall text < ./version.dhall) |
37 |
| - echo publishing $VERSION lib... |
38 |
| - env VER=$VERSION nix-shell -p gnused --run 'sed -i "s/0.1.0.0/${VER}/" ./dhall-secret.cabal' |
39 |
| - - name: Static Binary |
40 |
| - run: ${{matrix.os.build-script}} |
41 |
| - - uses: actions/upload-artifact@v2 |
42 |
| - with: |
43 |
| - name: ${{matrix.os.runner}}-binary |
44 |
| - path: ./result/bin/dhall-secret |
| 9 | + # build: |
| 10 | + # strategy: |
| 11 | + # matrix: |
| 12 | + # os: |
| 13 | + # - runner: "macos-latest" |
| 14 | + # build-script: "nix-build -A dhall-secret.components.exes.dhall-secret" |
| 15 | + # - runner: "ubuntu-latest" |
| 16 | + # build-script: "nix-build -A projectCross.musl64.hsPkgs.dhall-secret.components.exes.dhall-secret" |
| 17 | + # name: build on ${{ matrix.os.runner }} |
| 18 | + # runs-on: ${{ matrix.os.runner }} |
| 19 | + # if: "!contains(github.event.head_commit.message, 'ci skip')" |
| 20 | + # steps: |
| 21 | + # - uses: actions/checkout@v2 |
| 22 | + # - uses: dhall-lang/setup-dhall@v4 |
| 23 | + # - uses: cachix/install-nix-action@v18 |
| 24 | + # with: |
| 25 | + # nix_path: nixpkgs=channel:nixos-22.05 |
| 26 | + # extra_nix_config: | |
| 27 | + # trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= |
| 28 | + # substituters = https://cache.iog.io https://hydra.iohk.io https://cache.nixos.org/ |
| 29 | + # - uses: cachix/cachix-action@v10 |
| 30 | + # with: |
| 31 | + # name: jcouyang |
| 32 | + # authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' |
| 33 | + # - name: Test |
| 34 | + # run: nix-build -A dhall-secret.components.tests |
| 35 | + # - run: | |
| 36 | + # VERSION=$(dhall text < ./version.dhall) |
| 37 | + # echo publishing $VERSION lib... |
| 38 | + # env VER=$VERSION nix-shell -p gnused --run 'sed -i "s/0.1.0.0/${VER}/" ./dhall-secret.cabal' |
| 39 | + # - name: Static Binary |
| 40 | + # run: ${{matrix.os.build-script}} |
| 41 | + # - uses: actions/upload-artifact@v2 |
| 42 | + # with: |
| 43 | + # name: ${{matrix.os.runner}}-binary |
| 44 | + # path: ./result/bin/dhall-secret |
45 | 45 | publish:
|
46 | 46 | runs-on: ubuntu-latest
|
47 | 47 | if: "!contains(github.event.head_commit.message, 'publish skip') && (github.ref == 'refs/heads/master')"
|
|
68 | 68 | env:
|
69 | 69 | HACKAGE_PASS: ${{ secrets.HACKAGE_PASS }}
|
70 | 70 | run: |
|
71 |
| - VERSION=$(dhall text < ./version.dhall) |
| 71 | + export VERSION=$(dhall text < ./version.dhall) |
72 | 72 | echo publishing $VERSION lib...
|
73 | 73 | env VER=$VERSION nix-shell -p gnused --run 'sed -i "s/0.1.0.0/${VER}/" ./dhall-secret.cabal'
|
74 | 74 | nix-shell --run 'cabal sdist -o .'
|
|
0 commit comments