Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GitHub Actions #54

Merged
merged 2 commits into from
Dec 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main
pull_request:
jobs:
unix:
native-image:
name: Compile
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -15,10 +15,13 @@ jobs:
os: [macOS-latest, ubuntu-latest, windows-latest]
java: [8]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: olafurpg/setup-scala@v13
with:
java-version: "adopt@1.${{ matrix.java }}"
- name: Setup Windows C++ toolchain
uses: ilammy/msvc-dev-cmd@v1
if: ${{ matrix.os == 'windows-latest' }}
- name: sbt test plugin/scripted
if: ${{ matrix.os == 'ubuntu-latest' }}
shell: bash
Expand All @@ -30,15 +33,13 @@ jobs:
export NATIVE_IMAGE_COMMAND=$GRAALVM_HOME/bin/native-image
sbt test plugin/scripted
- name: sbt test
shell: cmd
shell: bash
if: ${{ matrix.os == 'windows-latest' }}
run: >-
"C:\Program Files (x86)\Microsoft Visual
Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat" && sbt
example/nativeImage
run: |
sbt example/nativeImage
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: olafurpg/setup-scala@v13
- run: sbt checkAll
33 changes: 19 additions & 14 deletions .github/workflows/native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
release:
types: [published]
jobs:
unix:
native-image:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -25,22 +25,27 @@ jobs:
- os: windows-latest
uploaded_filename: example-x86_64-pc-win32.exe
local_path: example\target\native-image\example.exe
env:
# define Java options for both official sbt and sbt-extras
JAVA_OPTS: -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
JVM_OPTS: -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
steps:
- uses: actions/checkout@v2
- uses: olafurpg/setup-scala@v13
- uses: actions/checkout@v3
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 8
cache: sbt
- run: git fetch --tags || true
- run: sbt example/nativeImage
shell: bash
if: ${{ matrix.os != 'windows-latest' }}
- run: echo $(pwd)
shell: bash
- name: sbt test
shell: cmd
- name: Setup Windows C++ toolchain
uses: ilammy/msvc-dev-cmd@v1
if: ${{ matrix.os == 'windows-latest' }}
run: >-
"C:\Program Files (x86)\Microsoft Visual
Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat" && sbt
example/nativeImage
- name: Build
shell: bash
run: |
echo $(pwd)
sbt clean example/nativeImage
- uses: actions/upload-artifact@v2
with:
path: ${{ matrix.local_path }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: olafurpg/setup-scala@v13
- uses: olafurpg/setup-gpg@v3
- run: git fetch --tags || true
Expand Down