Skip to content

Commit

Permalink
Update cirrus-ci-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
adonis0147 committed Feb 29, 2024
1 parent 1392ef7 commit 45a1428
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 19 deletions.
29 changes: 11 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Release

on:
push:
tags:
- '*'
on: push

jobs:
Publish:
Expand All @@ -21,11 +18,19 @@ jobs:
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: |
trigger='.github/cirrus-ci-tools/src/trigger-cirrus-ci.py'
source .github/cirrus-ci-tools/.venv/bin/activate
config='.github/cirrus-ci/build_toolchain.yml'
urls="$(python3 "${trigger}" --token ${{ secrets.CIRRUS_CI_TOKEN }} --repository ${{ github.repository }} \
urls="$(trigger-cirrus-ci --token ${{ secrets.CIRRUS_CI_TOKEN }} --repository ${{ github.repository }} \
--branch master --config "${config}" --timeout 240)"
while read -r url; do
Expand All @@ -34,15 +39,3 @@ jobs:
unzip binary.zip
done <<<"${urls}"
- name: Upload
run: |
content="$(cat .github/templates/release.md)"
pushd output >/dev/null
content="${content/<MD5SUM>/$(md5sum *)}"
content="${content/<SHA256SUM>/$(sha256sum *)}"
popd >/dev/null
echo "${content}" >note.md
gh release create -t "devel-env ${{ github.ref_name }}" -F note.md ${{ github.ref_name }} output/*

0 comments on commit 45a1428

Please sign in to comment.