diff --git a/.circleci/config.yml b/.circleci/config.yml index 32eccf2093..ca9bde0513 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -290,6 +290,27 @@ jobs: chmod +x codecov.sh ./codecov.sh -Z -J '^Glean$' -X gcov -X coveragepy || echo 'Codecov upload failed' + Carthage release: + macos: + xcode: "11.2.0" + steps: + - checkout + - attach_workspace: + at: . + - run: + name: Get ghr release tool + command: | + GHR=ghr_v0.13.0_darwin_amd64 + GHR_SHA256=319988a001462f80b37cf40fbc41b9de60b0a1cffa2a338b47b9fe5eef25f60e + curl -sfSL --retry 5 --retry-delay 10 -O "https://github.com/tcnksm/ghr/releases/download/v0.13.0/${GHR}.tar.gz" + echo "${GHR_SHA256} *${GHR}.tar.gz" | shasum -a 256 -c - + tar -xf "${GHR}.tar.gz" + cp ./${GHR}/ghr ghr + - run: + name: Release Carthage archive on GitHub + command: | + ./ghr -replace "${CIRCLE_TAG}" Glean.framework.zip + iOS integration test: macos: xcode: "11.2.0" @@ -725,3 +746,17 @@ workflows: ignore: /.*/ tags: only: /^v.*/ + - iOS build and test: + filters: + branches: + ignore: /.*/ + tags: + only: /^v.*/ + - Carthage release: + requires: + - iOS build and test + filters: + branches: + ignore: /.*/ + tags: + only: /^v.*/