Switch to macos-latest #2
Workflow file for this run
This file contains 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 WebExtension | |
on: | |
push: | |
branches: ["main", "ios-ci"] | |
paths-ignore: | |
- "*.md" | |
jobs: | |
build: | |
permissions: | |
contents: write | |
name: Build for iOS | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Copy certificate from secrets | |
if: ${{ matrix.make_target == 'chrome' }} | |
run: 'echo "$CHROME_PK" > cert.pem' | |
shell: bash | |
env: | |
CHROME_PK: ${{secrets.CHROME_PK}} | |
- name: Install yarn | |
run: |- | |
curl -fsSL --create-dirs -o $HOME/bin/yarn \ | |
https://github.com/yarnpkg/yarn/releases/download/v1.22.19/yarn-1.22.19.js | |
chmod +x $HOME/bin/yarn | |
echo "$HOME/bin" >> $GITHUB_PATH | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: "yarn" | |
- name: Install dependencies | |
run: | | |
yarn install --immutable | |
- name: Build webextension | |
run: yarn run wp-build --env BROWSER=safari | |
- name: Build IPA | |
run: | | |
cd dist | |
xcrun safari-web-extension-converter . --ios-only --force --no-prompt --no-open | |
ls | |
cat *.xcodproj | |
xcodebuild clean archive -sdk iphonesimulator -destination 'generic/platform=iOS Simulator' |