Skip to content

Commit

Permalink
Update GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
eed3si9n committed Sep 4, 2024
1 parent ee34393 commit 42adceb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
34 changes: 19 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ jobs:
- os: ubuntu-20.04
java: 8
jobtype: 1
- os: macos-latest
- os: macos-12
java: 8
jobtype: 1
- os: windows-latest
- os: macos-14
java: 8
jobtype: 1
- os: windows-2019
java: 8
jobtype: 1
runs-on: ${{ matrix.os }}
Expand All @@ -22,47 +25,48 @@ jobs:
JVM_OPTS: -Xms800M -Xmx2G -Xss6M -XX:ReservedCodeCacheSize=128M -server -Dsbt.io.virtual=false -Dfile.encoding=UTF-8
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: temurin
distribution: zulu
java-version: "${{ matrix.java }}"
cache: sbt
- uses: sbt/setup-sbt@v1
- name: Set up MinGW
if: ${{ matrix.os != 'macos-latest' }}
if: ${{ runner.os != 'macOS' }}
uses: egor-tensin/setup-mingw@v2
with:
platform: x64
- name: Set up gcc-aarch64-linux-gnu
if: ${{ matrix.os == 'ubuntu-latest' }}
if: ${{ runner.os == 'Linux' }}
shell: bash
run: sudo apt-get -y install gcc-aarch64-linux-gnu
- name: Build and test (Linux)
if: ${{ matrix.os == 'ubuntu-latest' }}
if: ${{ runner.os == 'Linux' }}
shell: bash
run: |
sbt "jvmfmtCheckAll; clangfmtCheck; buildNativeArtifacts; test"
sbt "jvmfmtCheckAll; buildNativeArtifacts; test"
- name: Build and test (macOS)
if: ${{ matrix.os == 'macos-latest' }}
if: ${{ runner.os == 'macOS' }}
shell: bash
run: sbt "buildNativeArtifacts; test"
- name: Build and test (Windows)
if: ${{ matrix.os == 'windows-latest' }}
if: ${{ runner.os == 'Windows' }}
shell: bash
run: sbt "buildNativeArtifacts; test"
- name: Archive native artifacts (Linux)
if: ${{ matrix.os == 'ubuntu-20.04' }}
uses: actions/upload-artifact@v2
if: ${{ runner.os == 'Linux' }}
uses: actions/upload-artifact@v4
with:
name: dist-${{ runner.os }}
path: |
src/main/resources/linux/x86_64/libsbtipcsocket.so
src/main/resources/linux/aarch64/libsbtipcsocket.so
src/main/resources/win32/x86_64/sbtipcsocket.dll
- name: Archive native artifacts (macOS)
if: ${{ matrix.os == 'macos-latest' }}
uses: actions/upload-artifact@v2
if: ${{ matrix.os == 'macos-12' }}
uses: actions/upload-artifact@v4
with:
name: dist-${{ runner.os }}
path: src/main/resources/darwin/x86_64/libsbtipcsocket.dylib
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.8.0
sbt.version=1.10.1

0 comments on commit 42adceb

Please sign in to comment.