Add new path for provisioning profiles starting Xcode 16 #1133
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: Substrate Build | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Build | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest] # windows-latest] | |
include: | |
- os: ubuntu-latest | |
ARCH: "x86_64" | |
- os: macos-latest | |
ARCH: "aarch64" | |
# - os: windows-latest | |
# ARCH: "x86_64" | |
steps: | |
- name: Install packages (Linux) | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt-get update | |
sudo apt-get install at-spi2-core build-essential libgtk-3-dev libxtst-dev libavcodec-dev libavformat-dev libasound2-dev libgl-dev | |
- uses: actions/checkout@v2 | |
- name: Add msbuild to PATH (Windows) | |
if: runner.os == 'Windows' | |
uses: microsoft/[email protected] | |
- name: Visual Studio shell (Windows) | |
if: runner.os == 'Windows' | |
uses: egor-tensin/vs-shell@v1 | |
- name: Setup Gluon's GraalVM | |
uses: gluonhq/setup-graalvm@master | |
with: | |
jdk: 'java23' | |
arch: ${{ matrix.ARCH }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Shutdown and Reset all Simulators (MacOS) | |
if: runner.os == 'macOS' | |
run: sudo xcrun simctl shutdown all && sudo xcrun simctl erase all | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Run Tests (Linux) | |
if: runner.os == 'Linux' | |
run: | | |
export DISPLAY=:90 | |
Xvfb -ac :90 -screen 0 1280x1024x24 > /dev/null 2>&1 & | |
./gradlew -i test | |
- name: Run Tests (MacOS) | |
if: runner.os == 'macOS' | |
run: | | |
./gradlew -i test | |
- name: Run Tests (Windows) | |
if: runner.os == 'Windows' | |
run: | | |
./gradlew -i test | |
- name: Build project | |
run: ./gradlew -i build -x test | |
- name: Deploy Snapshot | |
if: runner.os == 'Linux' && github.ref == 'refs/heads/master' | |
run: ./gradlew publish -PsonatypeUsername=$SONATYPE_USERNAME -PsonatypePassword=$SONATYPE_PASSWORD | |
env: | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
- name: Draft release | |
if: runner.os == 'Linux' && github.ref == 'refs/heads/master' | |
# Drafts your next Release notes as Pull Requests are merged into "master" | |
uses: release-drafter/release-drafter@v5 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |