ci: fix Theos install permissions on macOS runner #4
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| push: | |
| branches: [master, main, ci/**] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: macos-latest | |
| env: | |
| THEOS: /opt/theos | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Theos | |
| run: | | |
| sudo mkdir -p $THEOS && sudo chown $USER $THEOS | |
| CI=1 bash -c "$(curl -fsSL https://raw.githubusercontent.com/theos/theos/master/bin/install-theos)" | |
| rm -rf $THEOS/sdks/*.sdk | |
| $THEOS/bin/install-sdk iPhoneOS10.3 | |
| - name: Build package | |
| run: make package FINALPACKAGE=1 | |
| - name: Upload .deb artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: deb-package | |
| path: packages/*.deb | |
| - name: Build .ipa | |
| run: | | |
| mkdir -p Payload | |
| cp -R .theos/obj/install/Applications/socket.app Payload/ | |
| zip -r socket.ipa Payload | |
| rm -rf Payload | |
| - name: Upload .ipa artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: ipa-package | |
| path: socket.ipa |