Skip to content

Commit

Permalink
improvement: Add artifacts for M1
Browse files Browse the repository at this point in the history
  • Loading branch information
tgodzik committed Aug 26, 2024
1 parent 9dc4d3c commit 002c920
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,14 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-12]
os: [ubuntu-latest, windows-latest, macOS-12, macOS-14]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: coursier/setup-action@v1
with:
apps: 'sbt'
- uses: graalvm/setup-graalvm@v1
with:
version: '22.3.0'
Expand All @@ -79,7 +82,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-12]
os: [ubuntu-latest, windows-latest, macOS-12, macOS-14]
jdk: ["22.3.0", "17"]

name: Test ${{ matrix.os }} -- ${{ matrix.jdk }}
Expand All @@ -95,6 +98,7 @@ jobs:
- uses: coursier/setup-action@v1
with:
jvm: 'temurin:17'
apps: 'sbt'
if: matrix.jdk == '17'

- uses: coursier/cache-action@v6
Expand Down Expand Up @@ -132,16 +136,17 @@ jobs:
publish-binaries:
name: Publish binaries for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
if: github.event_name == 'push'
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, macOS-12, windows-latest]
os: [ubuntu-20.04, macOS-12, macOS-14, windows-latest]
include:
- os: ubuntu-20.04
artifact: bloop-linux
- os: macos-12
artifact: bloop-macos
- os: macos-14
artifact: bloop-macos-m1
- os: windows-latest
artifact: bloop-windows
env:
Expand All @@ -164,6 +169,10 @@ jobs:
native-image-job-reports: 'true'
github-token: ${{ secrets.GITHUB_TOKEN }}

- uses: coursier/setup-action@v1
with:
apps: 'sbt'

- name: Publish GraalVM Native artifacts
run: sbt "cli/graalvm-native-image:packageBin"

Expand Down
8 changes: 7 additions & 1 deletion project/BuildPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,17 @@ object BuildKeys {
baseDir / "bloop-artifacts" / "bloop-linux" / "bloop-linux"
val originBloopMacosBinary =
baseDir / "bloop-artifacts" / "bloop-macos" / "bloop-macos"
val originBloopMacosM1Binary =
baseDir / "bloop-artifacts" / "bloop-macos-m1" / "bloop-macos-m1"
val targetBloopLinuxBinary = releaseTargetDir / "bloop-x86_64-pc-linux"
val targetBloopWindowsBinary = releaseTargetDir / "bloop-x86_64-pc-win32.exe"
val targetBloopMacosBinary = releaseTargetDir / "bloop-x86_64-apple-darwin"
val targetBloopMacosM1Binary = releaseTargetDir / "bloop-aarch64-apple-darwin"

IO.copyFile(originBloopWindowsBinary, targetBloopWindowsBinary)
IO.copyFile(originBloopLinuxBinary, targetBloopLinuxBinary)
IO.copyFile(originBloopMacosBinary, targetBloopMacosBinary)
IO.copyFile(originBloopMacosM1Binary, targetBloopMacosM1Binary)

val originBashCompletions = baseDir / "etc" / "bash-completions"
val originZshCompletions = baseDir / "etc" / "zsh-completions"
Expand All @@ -134,7 +139,8 @@ object BuildKeys {
targetFishCompletions,
targetBloopLinuxBinary,
targetBloopMacosBinary,
targetBloopWindowsBinary
targetBloopWindowsBinary,
targetBloopMacosM1Binary
)
},
createLocalHomebrewFormula := ReleaseUtils.createLocalHomebrewFormula.value,
Expand Down

0 comments on commit 002c920

Please sign in to comment.