diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1d1d77e7a6..6fc40a9941 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -150,18 +150,33 @@ jobs: uses: stCarolas/setup-maven@v4.5 with: maven-version: 3.9.2 + - name: Screenshot Website + uses: swinton/screenshot-website@v1.x + with: + source: https://github.com/swinton/screenshot-website + destination: screenshot.png + - name: Run spctl --master-disable + run: sudo spctl --master-disable - name: Build working-directory: features/org.eclipse.equinox.executable.feature/library/cocoa run: ./build.sh test shell: bash + - name: screenshot + if: always() + uses: OrbitalOwen/desktop-screenshot-action@0.1 + with: + file-name: 'desktop.jpg' - name: Upload artifacts uses: actions/upload-artifact@v4 - if: success() + if: always() with: name: MacOS launcher artifacts path: | + features/org.eclipse.equinox.executable.feature/ features/org.eclipse.equinox.executable.feature/library/cocoa/eclipse features/org.eclipse.equinox.executable.feature/library/cocoa/eclipse*.so + desktop.jpg + screenshot.png if-no-files-found: error - name: Upload MacOS Test Results uses: actions/upload-artifact@v4 diff --git a/features/org.eclipse.equinox.executable.feature/library/cocoa/build.sh b/features/org.eclipse.equinox.executable.feature/library/cocoa/build.sh index 437bb371d2..eda40e4d52 100755 --- a/features/org.eclipse.equinox.executable.feature/library/cocoa/build.sh +++ b/features/org.eclipse.equinox.executable.feature/library/cocoa/build.sh @@ -94,6 +94,7 @@ fi if [ "$extraArgs" != "" ]; then make -f $makefile $extraArgs + ../org.eclipse.launcher.tests/target/test-run/eclipse & else echo "Building $defaultOS launcher. Defaults: -os $DEFAULT_OS -arch $DEFAULT_OS_ARCH -ws $DEFAULT_WS" make -f $makefile clean