Skip to content

Commit

Permalink
Cirrus CI (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
Satochip committed Jun 30, 2022
1 parent 61ee860 commit 827305f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
common: &COMMON_TEMPLATE
timeout_in: 120m
clone_script: |
if [ -z "$CIRRUS_PR" ]; then
git clone --recursive --branch=$CIRRUS_BRANCH https://x-access-token:${CIRRUS_REPO_CLONE_TOKEN}@github.com/${CIRRUS_REPO_FULL_NAME}.git $CIRRUS_WORKING_DIR
git reset --hard $CIRRUS_CHANGE_IN_REPO
else
git clone --recursive https://x-access-token:${CIRRUS_REPO_CLONE_TOKEN}@github.com/${CIRRUS_REPO_FULL_NAME}.git $CIRRUS_WORKING_DIR
git fetch origin pull/$CIRRUS_PR/head:pull/$CIRRUS_PR
git reset --hard $CIRRUS_CHANGE_IN_REPO
fi
env:
GIT_REPO: $CIRRUS_WORKING_DIR

task:
name: "Build MacOS DMG"
<< : *COMMON_TEMPLATE
macos_instance:
image: catalina-base
brew_script:
- brew update
- brew install coreutils gettext pyenv
test_script:
- cd contrib/osx && ./make_osx
binaries_artifacts:
path: "dist/*.dmg"
trigger_type: manual

0 comments on commit 827305f

Please sign in to comment.