mirror of
https://github.com/autc04/Retro68.git
synced 2024-06-10 02:29:39 +00:00
- pass token into docker
- use cachix while building
This commit is contained in:
parent
6a9ff4c60f
commit
ffd9c09d1a
|
@ -98,9 +98,9 @@ jobs:
|
||||||
submodules: true
|
submodules: true
|
||||||
- script: |
|
- script: |
|
||||||
docker run -i --name nix -v`pwd`:/src nixos/nix:latest <<EOF
|
docker run -i --name nix -v`pwd`:/src nixos/nix:latest <<EOF
|
||||||
|
nix-env -iA cachix -f https://cachix.org/api/v1/install
|
||||||
|
cachix use autc04
|
||||||
chmod 1777 /tmp
|
chmod 1777 /tmp
|
||||||
nix-channel --add https1://nixos.org/channels/nixos-21.11 nixpkgs
|
|
||||||
nix-channel --update
|
|
||||||
nix-build src -A powerpc.retro68.samples
|
nix-build src -A powerpc.retro68.samples
|
||||||
EOF
|
EOF
|
||||||
displayName: Build inside nixos/nix docker
|
displayName: Build inside nixos/nix docker
|
||||||
|
@ -113,7 +113,7 @@ jobs:
|
||||||
artifact: PowerPC Samples
|
artifact: PowerPC Samples
|
||||||
- script: |
|
- script: |
|
||||||
docker start nix -i <<EOF
|
docker start nix -i <<EOF
|
||||||
nix-env -iA cachix -f https://cachix.org/api/v1/install
|
export CACHIX_AUTH_TOKEN=$CACHIX_AUTH_TOKEN
|
||||||
cd src
|
cd src
|
||||||
nix-shell -A powerpc --command exit
|
nix-shell -A powerpc --command exit
|
||||||
nix-store -qR --include-outputs $(nix-instantiate default.nix -A powerpc) | cachix push autc04
|
nix-store -qR --include-outputs $(nix-instantiate default.nix -A powerpc) | cachix push autc04
|
||||||
|
|
Loading…
Reference in New Issue
Block a user