Skip to content

Commit

Permalink
Try circle ci 13
Browse files Browse the repository at this point in the history
  • Loading branch information
raub committed Nov 22, 2024
1 parent 53bc3f4 commit 734e4ba
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ workflows:
pack-qt:
jobs:
- pack-qt
- upload-qt

jobs:

pack-qt:
machine:
image: ubuntu-2204:current
Expand All @@ -14,9 +16,25 @@ jobs:
- run: python -m pip install setuptools aqtinstall
- run: cd ~ && python -m aqt install-qt --outputdir ~/Qt linux_arm64 desktop 6.8.0 linux_gcc_arm64
- checkout
- run: PKG_VERSION=`node -p "'version='+require('./package').version"`
- run: echo $PKG_VERSION
- run: mkdir -p ~/artifacts
- run: node -p "'version='+require('./package').version" > ~/artifacts/pkg-version
- run: chmod +x src/qt-mkdir.sh && src/qt-mkdir.sh ~/qt_tmp
- run: chmod +x src/qt-copy-linux.sh && src/qt-copy-linux.sh ~/qt_tmp ~/Qt/6.8.0/gcc_arm64
- run: cd ~/qt_tmp && tar -czf ../aarch64.gz *
- run: ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -n "Release ${PKG_VERSION}" -replace -draft ${PKG_VERSION} ~/aarch64.gz
- run: mkdir -p ~/artifacts && mv ~/aarch64.gz ~/artifacts
- persist_to_workspace:
root: ~/artifacts
paths:
- aarch64.gz
- pkg-version

upload-qt:
docker:
- image: cibuilds/github:0.10
steps:
- attach_workspace:
at: /tmp/artifacts
- run: |
PKG_VERSION=`cat /tmp/artifacts/pkg-version`
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -n "Release ${PKG_VERSION}" -replace -draft ${PKG_VERSION} /tmp/artifacts/aarch64.gz

0 comments on commit 734e4ba

Please sign in to comment.