mirror of
https://github.com/autc04/Retro68.git
synced 2024-06-29 03:29:40 +00:00
ue the same settings for nix/m68k
This commit is contained in:
parent
ecc19fca6e
commit
a810c7dde7
|
@ -66,17 +66,15 @@ jobs:
|
||||||
buildPlatform: 'x86_64-macos'
|
buildPlatform: 'x86_64-macos'
|
||||||
|
|
||||||
- job: nix_68k
|
- job: nix_68k
|
||||||
condition: false
|
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'ubuntu-20.04'
|
vmImage: 'ubuntu-20.04'
|
||||||
steps:
|
steps:
|
||||||
- checkout: self
|
- checkout: self
|
||||||
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:2.3.12 <<EOF
|
||||||
chmod 1777 /tmp
|
nix-env -iA cachix -f https://cachix.org/api/v1/install
|
||||||
nix-channel --add https://nixos.org/channels/nixos-21.11 nixpkgs
|
cachix use autc04
|
||||||
nix-channel --update
|
|
||||||
nix-build src -A m68k.retro68.samples
|
nix-build src -A m68k.retro68.samples
|
||||||
EOF
|
EOF
|
||||||
displayName: Build inside nixos/nix docker
|
displayName: Build inside nixos/nix docker
|
||||||
|
@ -88,7 +86,19 @@ jobs:
|
||||||
|
|
||||||
- publish: CompiledSamples
|
- publish: CompiledSamples
|
||||||
artifact: 68K Samples
|
artifact: 68K Samples
|
||||||
|
- publish: CompiledSamples
|
||||||
|
artifact: PowerPC Samples
|
||||||
|
- script: |
|
||||||
|
docker start nix -i <<EOF
|
||||||
|
export CACHIX_AUTH_TOKEN=$CACHIX_AUTH_TOKEN
|
||||||
|
cd src
|
||||||
|
nix-shell -A m68k --command exit
|
||||||
|
nix-store -qR --include-outputs \$(nix-instantiate default.nix -A m68k) | cachix push autc04
|
||||||
|
EOF
|
||||||
|
displayName: Push to Cachix
|
||||||
|
env:
|
||||||
|
CACHIX_AUTH_TOKEN: $(CACHIX_AUTH_TOKEN)
|
||||||
|
|
||||||
|
|
||||||
- job: nix_ppc
|
- job: nix_ppc
|
||||||
pool:
|
pool:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user