Skip to content

Update cirrus-ci-tools #34

Update cirrus-ci-tools

Update cirrus-ci-tools #34

Workflow file for this run

name: Release
on: push
jobs:
Publish:
runs-on: ubuntu-latest
environment: CIRRUS-CI
env:
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.ref_name }}
submodules: true
- name: Setup Rye
run: |
curl -sSf https://rye-up.com/get | RYE_INSTALL_OPTION="--yes" bash
source "${HOME}/.rye/env"
cd .github/cirrus-ci-tools
rye sync
- name: Cirrus CI Build
run: |
source .github/cirrus-ci-tools/.venv/bin/activate
trigger='trigger-cirrus-ci'
config='.github/cirrus-ci/build_toolchain.yml'
urls="$(python3 "${trigger}" --token ${{ secrets.CIRRUS_CI_TOKEN }} --repository ${{ github.repository }} \
--branch master --config "${config}" --timeout 240)"
while read -r url; do
echo "The artifact url: ${url}"
curl -L ${url} -o binary.zip
unzip binary.zip
done <<<"${urls}"