Add PoweredHinge2Joint #346
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: CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ windows-latest, macos-13, ubuntu-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
with: | |
submodules: "recursive" | |
fetch-depth: 0 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Setup Webots | |
id: setupWebots | |
uses: DeepBlueRobotics/[email protected] | |
with: | |
webotsVersion: R2023b | |
- name: Do the system test | |
uses: ./.github/actions/run-system-test | |
- name: Archive the example folder | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: Resulting example project for ${{ runner.os }} | |
path: example/ | |
- name: Archive Webots log | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: Webots log for ${{ runner.os }} | |
path: webots-${{ runner.os }}.log | |
- name: Archive java logs | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: Java logs for ${{ runner.os }} | |
path: | | |
~/DeepBlueSim*.log | |
~/example*.log | |
publish: | |
# Only release from the master branch | |
if: github.ref == 'refs/heads/master' | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel any existing workflow runs | |
uses: fkirc/skip-duplicate-actions@v5 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
- name: Setup Webots | |
id: setupWebots | |
uses: DeepBlueRobotics/[email protected] | |
with: | |
webotsVersion: R2024a | |
webotsRepository: DeepBlueRobotics/webots | |
webotsTag: R2024a_DeepBlueSim_2024_07_28 | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
with: | |
submodules: "recursive" | |
fetch-depth: 0 | |
- name: Compute next semantic version | |
id: version | |
uses: paulhatch/[email protected] | |
with: | |
branch: "master" | |
- name: Test with explicit version | |
run: ./gradlew :plugin:build -Pversion=${{ steps.version.outputs.version }} --info --stacktrace | |
- name: Tag | |
run: git tag ${{ steps.version.outputs.version_tag }} | |
- name: Push | |
run: git push origin ${{ steps.version.outputs.version_tag }} | |
- name: Publish to Gradle Plugin Portal | |
env: | |
GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }} | |
GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }} | |
run: ./gradlew :plugin:publishPlugins -Pversion=${{ steps.version.outputs.version }} -Pgradle.publish.key=$GRADLE_PUBLISH_KEY -Pgradle.publish.secret=$GRADLE_PUBLISH_SECRET --info --stacktrace |