From 8f37526fc9c212cc0e4e54ebdab8af989aa25ebd Mon Sep 17 00:00:00 2001 From: Mitchell Hanberg Date: Sun, 17 Sep 2023 21:10:35 -0400 Subject: [PATCH] ci(release): use rtx instead of nix --- .cirrus.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index ea890a99..83ed0f1e 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -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/*