@@ -96,19 +96,26 @@ jobs:
9696 os : [ubuntu-latest, ubuntu-24.04-arm]
9797 target : ['.', '.#static']
9898 runs-on : ${{ matrix.os }}
99+ env :
100+ AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
101+ AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
99102 steps :
100103 - uses : actions/checkout@v4
101104 - uses : cachix/install-nix-action@v20
102105 with :
106+ install_options : --no-daemon
103107 github_access_token : ${{ secrets.GITHUB_TOKEN }}
104108 extra_nix_config : |
105- substituters = https://cache.nixos.org https://cache.iog.io
109+ substituters = https://cache.nixos.org https://cache.iog.io s3://pandoc-crossref?trusted=true®ion=${{secrets.AWS_REGION}}&endpoint=${{secrets.AWS_ENDPOINT_URL}}&priority=50
106110 trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
107111 - uses : cachix/cachix-action@v12
108112 with :
109113 name : pandoc-crossref
110114 authToken : ' ${{ secrets.CACHIX_AUTH_TOKEN }}'
111115 - run : nix build ${{ matrix.target }}
116+ - run : |
117+ nix-store -qR --include-outputs $(nix path-info --derivation ${{matrix.target}}) | \
118+ nix copy --to 's3://pandoc-crossref?region=${{secrets.AWS_REGION}}&endpoint=${{secrets.AWS_ENDPOINT_URL}}' --stdin
112119
113120 build-nix :
114121 strategy :
@@ -117,13 +124,17 @@ jobs:
117124 os : [ubuntu-latest, ubuntu-24.04-arm]
118125 runs-on : ${{ matrix.os }}
119126 needs : [build-nix-pre]
127+ env :
128+ AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
129+ AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
120130 steps :
121131 - uses : actions/checkout@v4
122132 - uses : cachix/install-nix-action@v20
123133 with :
134+ install_options : --no-daemon
124135 github_access_token : ${{ secrets.GITHUB_TOKEN }}
125136 extra_nix_config : |
126- substituters = https://cache.nixos.org https://cache.iog.io
137+ substituters = https://cache.nixos.org https://cache.iog.io s3://pandoc-crossref?trusted=true®ion=${{secrets.AWS_REGION}}&endpoint=${{secrets.AWS_ENDPOINT_URL}}&priority=50
127138 trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
128139 - uses : cachix/cachix-action@v12
129140 with :
@@ -158,6 +169,9 @@ jobs:
158169 with :
159170 name : ${{runner.os}}-${{runner.arch}}-build-static
160171 path : pandoc-crossref-${{runner.os}}-${{runner.arch}}
172+ - run : |
173+ nix-store -qR --include-outputs $(nix path-info --derivation .#test .#test-integrative .# .#devShells.$(nix eval --raw --impure --expr builtins.currentSystem).default ) | \
174+ nix copy --to 's3://pandoc-crossref?region=${{secrets.AWS_REGION}}&endpoint=${{secrets.AWS_ENDPOINT_URL}}' --stdin
161175
162176 release :
163177 needs : [build, build-nix]
0 commit comments