Skip to content

Commit

Permalink
Merge pull request gpodder#1647 from auouymous/build-mac-on-github
Browse files Browse the repository at this point in the history
Build for Mac on Github.
  • Loading branch information
auouymous authored Aug 6, 2024
2 parents 6e5d06f + d6a2a25 commit 0f55098
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .circleci/config.yml → .github/workflows/release-from-macos.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
# :noTabs=true:mode=yaml:tabSize=2:indentSize=2:
version: 2
name: release from macos

on: [push, pull_request]

jobs:
release-from-macos:
macos:
xcode: "13.4.1"
shell: /bin/bash --login -o pipefail
environment:
- BUNDLE_TAG: 24.8.5
name: build
if: >-
github.event_name == 'push' ||
github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
runs-on: macos-12
env:
BUNDLE_TAG: 24.8.5
steps:
- checkout
- uses: actions/checkout@v4
with:
fetch-depth: 0 # fetch tags
- run: >
curl -L -o "pythonbase-$BUNDLE_TAG.zip" "https://github.com/gpodder/gpodder-osx-bundle/releases/download/$BUNDLE_TAG/pythonbase-$BUNDLE_TAG.zip";
curl -L -o "pythonbase-$BUNDLE_TAG.zip.sha256" "https://github.com/gpodder/gpodder-osx-bundle/releases/download/$BUNDLE_TAG/pythonbase-$BUNDLE_TAG.zip.sha256";
Expand All @@ -17,15 +24,8 @@ jobs:
if [ "$saved_hash" != "$comp_hash" ]; then echo "E: $saved_hash != $comp_hash"; exit 1; else echo "valid hash"; fi;
LC_CTYPE=C.UTF-8 LANG=C.UTF-8 tools/mac-osx/release_on_mac.sh "$(pwd)/pythonbase-$BUNDLE_TAG.zip" || exit 1;
rm -Rf tools/mac-osx/_build/{gPodder.app,*.deps.zip*,gPodder.contents,run-*,gpo,gpodder-migrate2tres}
- store_artifacts:
path: tools/mac-osx/_build/

workflows:
version: 2
build-bundle:
jobs:
- release-from-macos:
filters:
branches:
ignore:
- adaptive
- uses: actions/upload-artifact@v4
with:
name: release
path: /Users/runner/work/gpodder/gpodder/tools/mac-osx/_build/
retention-days: 30

0 comments on commit 0f55098

Please sign in to comment.