Skip to content

Commit

Permalink
Add macos build
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklakariada committed Sep 21, 2024
1 parent 32f8169 commit e86a164
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ jobs:

strategy:
matrix:
java: [22]
os: ['ubuntu-latest']
java: [23]
os: ['ubuntu-latest', 'macos-latest']
runs-on: ${{ matrix.os }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-os-${{ matrix.os }}-java-${{ matrix.java }}
cancel-in-progress: true
name: "Build on ${{ matrix.os }} with Java ${{ matrix.java }}"
env:
DEFAULT_JAVA: 22
DEFAULT_JAVA: 23
DEFAULT_OS: 'ubuntu-latest'
permissions:
contents: read
Expand All @@ -30,7 +30,6 @@ jobs:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
cache: gradle
distribution: temurin
java-version: ${{ matrix.java }}
- name: Setup Gradle
Expand Down
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ dependencies {

java {
toolchain {
languageVersion = JavaLanguageVersion.of(22)
def javaVersion = project.hasProperty('javaVersion') ? project.getProperty('javaVersion') : 22
languageVersion = JavaLanguageVersion.of(javaVersion)
}
}

Expand Down
2 changes: 2 additions & 0 deletions lua/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ a: $(ALL_A)

so: $(LUA_SO)

dylib: $(LUA_DYLIB)

$(LUA_SO): $(CORE_O) $(LIB_O)
$(CC) -o $@ -shared $?

Expand Down

0 comments on commit e86a164

Please sign in to comment.