Skip to content

Update Elixir and Erlang versions to 1.18.1 and 27.2 respectively #318

Update Elixir and Erlang versions to 1.18.1 and 27.2 respectively

Update Elixir and Erlang versions to 1.18.1 and 27.2 respectively #318

Workflow file for this run

name: "system build"
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- uses: cachix/install-nix-action@v24
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
experimental-features = nix-command flakes
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v13
with:
name: pepo
# If you chose signing key for write access
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}"
# If you chose API tokens for write access OR if you have a private cache
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Run Flake Checks and replace darwinConfiguration with hostname
run: |
# GITHUB RUNNERS use a local TLD which needs to be removed
# also it's is not possible to build with M1/M2 aarch64-darwin
# so this step is not the most useful if you develop
# on LATEST MACHINES :joy:
cat flake.nix | sed "s/swamp/$(hostname | sed 's/.local//g')/g" | sed "s/aarch64-darwin/x86_64-darwin/g" > flake.nix2
rm -f flake.nix
mv flake.nix2 flake.nix
nix flake check -v --show-trace
cat flake.nix
timeout-minutes: 240
- name: Run build
run: |
cachix use pepo
nix build "./#darwinConfigurations.$(hostname | sed -E 's/\.local//g').system"
# error: Directory /run does not exist, aborting activation
# Create a symlink to /var/run with:
# $ printf 'run\tprivate/var/run\n' | sudo tee -a /etc/synthetic.conf
# $ /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util -B # For Catalina
# $ /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util -t # For Big Sur and later
# The current contents of /etc/synthetic.conf is:
# nix
# Error: Process completed with exit code 2.
#
# ./result/sw/bin/darwin-rebuild switch --flake "./#$(hostname | sed -E 's/\.local//g')"