From 4a05106d865f85930ee386663954bfe603c853da Mon Sep 17 00:00:00 2001 From: Janne Valkealahti Date: Tue, 17 May 2022 10:24:15 +0100 Subject: [PATCH] Add manual build and test workflow --- .github/workflows/manual.yml | 46 ++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/manual.yml diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml new file mode 100644 index 00000000..427cd43c --- /dev/null +++ b/.github/workflows/manual.yml @@ -0,0 +1,46 @@ +name: Manual + +on: + workflow_dispatch: + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + include: + - nickname: win + os: windows-latest + graal: 22.1.0 + - nickname: macos + os: macos-latest + graal: 22.1.0 + - nickname: linux + os: ubuntu-latest + graal: 22.1.0 + name: Build ${{ matrix.nickname }} + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v2 + with: + distribution: adopt + java-version: 11 + cache: maven + - uses: graalvm/setup-graalvm@v1 + with: + version: ${{ matrix.graal }} + java-version: 11 + components: native-image + set-java-home: false + github-token: ${{ secrets.GITHUB_TOKEN }} + - run: | + ./mvnw clean package -Pnative + - uses: actions/upload-artifact@v2 + with: + name: spring-shell-samples-${{ matrix.nickname }} + retention-days: 1 + path: | + spring-shell-samples/target/*.jar + spring-shell-samples/target/spring-shell-samples + spring-shell-samples/target/spring-shell-samples.exe