From b6eb36ba6747a78ce4f581df8d0eff6737aa14ba Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Tue, 3 Oct 2023 21:44:31 -0700 Subject: [PATCH] cirrus: install GH cli and try publishing package --- .cirrus.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.cirrus.yml b/.cirrus.yml index d9237a94e..4f4f63be7 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -39,10 +39,13 @@ task: task: name: ubuntu-22.04-arm + only_if: $CIRRUS_REPO_OWNER == 'wez' arm_container: image: ubuntu:22.04 cpu: 4 memory: 12G + environment: + GITHUB_TOKEN: ENCRYPTED[23bd9513fa7174e74eaddce6a3099cabb22118423591553b23518e8c34bf155e07c559838b1d3422f561c73c1e31e6fc] stateful: false only_if: "changesInclude('**.toml', '**.rs', '.gitmodules', '.cirrus.yml', 'get-deps', 'Cargo.lock')" @@ -51,9 +54,17 @@ task: - apt update - apt-get install -y git curl - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y + install_gh_cli: + - curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg > /usr/share/keyrings/githubcli-archive-keyring.gpg + - chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg + - echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" > /etc/apt/sources.list.d/github-cli.list + - apt update + - apt install gh -y + - gh --version getdeps_script: - env PATH=$HOME/.cargo/bin:$PATH bash get-deps build_script: - env PATH=$HOME/.cargo/bin:$PATH cargo build --release -p wezterm-gui -p wezterm -p wezterm-mux-server -p strip-ansi-escapes - ./ci/deploy.sh - "ls -l *.deb" + - "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) *.deb"