Skip to content

Commit

Permalink
ci(release): use rtx instead of nix
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg committed Sep 18, 2023
1 parent c5a68df commit 8f37526
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,21 @@ task:
name: Build
macos_instance:
image: ghcr.io/cirruslabs/macos-ventura-base:latest
build_script:
- curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install --no-confirm
- . /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
- nix build .#ci
release_script:
- chmod +x "$PWD/bin/7z"
- brew install 7zip
- mkdir -p "$HOME/bin"
- curl https://rtx.pub/rtx-latest-macos-arm64 > "$HOME/bin/rtx"
- chmod +x "$HOME/bin/rtx"
- echo "PATH=$HOME/bin:$PATH" >> $CIRRUS_ENV
- echo "RTX_TRUSTED_CONFIG_PATHS="$PWD/.rtx.toml"
- echo "RTX_YES="yes"
- export PATH=$HOME/bin:$PATH
- rtx install
- for path in $(rtx bin-paths); do export PATH="$path:$PATH"; done
- mix local.hex --force
- mix local.rebar --force
- mix deps.get
- PATH="$PWD/bin:$PATH" MIX_ENV=prod mix release
binary_artifacts:
path: result/burrito_out/*
path: burrito_out/*

0 comments on commit 8f37526

Please sign in to comment.