Skip to content

Commit

Permalink
[CI] fix cachix install-nix
Browse files Browse the repository at this point in the history
There appears to be some unknowns regarding ensuring nix is installed,
but not overwritten (see
cachix/install-nix-action#98 and
https://github.com/cachix/install-nix-actions/pull/100/files).
  • Loading branch information
kquick committed Jan 13, 2022
1 parent 84d8b71 commit 4e5f502
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/ci.yaml
Expand Up @@ -12,13 +12,14 @@ jobs:
LC_ALL: en_US.UTF-8
TZ: America/Los_Angeles
CI_TEST_LEVEL: "2"
# USER: runner

runs-on: ${{ matrix.os }}
strategy:
matrix:
ghc-ver: ["8.8.4", "8.10.7", "9.0.2"]
cabal: [ '3.6.2.0' ]
os: [self-hosted]
os: [ubuntu-latest]
# complete all jobs
fail-fast: false
name: Macaw - GHC v${{ matrix.ghc-ver }}
Expand All @@ -28,8 +29,29 @@ jobs:
with:
submodules: true

- name: Probe Build Environment
run: |
id
echo USER is $USER
uname -a
echo pwd
pwd
echo os-release
cat /etc/os-release
echo attempting sudo
sudo whoami
echo mounts
sudo mount
echo what is in /proc?
sudo ls /proc
echo systemd?
systemd
echo exists?
ls /run/systemd
echo OK
- name: Install Nix
uses: cachix/install-nix-action@v16
uses: kquick/install-nix-action@master
with:
nix_path: nixpkgs=channel:nixos-21.11
install_url: https://releases.nixos.org/nix/nix-2.4/install
Expand Down

0 comments on commit 4e5f502

Please sign in to comment.