Bump coursier
to 2.1.15 & Scala to 2.13.15
#289
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- "v*" | |
pull_request: | |
jobs: | |
build-macos-launcher: | |
name: build-macos-launcher ${{ matrix.OS }} | |
strategy: | |
fail-fast: false | |
matrix: | |
OS: ["macos-14", "macos-13"] | |
include: | |
- OS: "macos-14" | |
JVM: "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.1.0/graalvm-ce-java17-darwin-aarch64-22.1.0.tar.gz" | |
- OS: "macos-13" | |
JVM: "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.1.0/graalvm-ce-java17-darwin-amd64-22.1.0.tar.gz" | |
runs-on: ${{ matrix.OS }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
- uses: coursier/[email protected] | |
with: | |
apps: "" | |
jvm: ${{ matrix.JVM }} | |
- run: | | |
./mill -i "cs-m1.writeNativeImageScript" generate.sh "" && \ | |
./generate.sh && \ | |
./mill -i "cs-m1.copyToArtifacts" artifacts/ | |
env: | |
GRAALVM_ID: ${{ matrix.JVM }} | |
- name: Build OS packages | |
if: matrix.os == 'macos-14' | |
run: .github/scripts/generate-os-packages.sh | |
shell: bash | |
- uses: actions/[email protected] | |
with: | |
name: macos-launcher | |
path: artifacts/ | |
if-no-files-found: error | |
retention-days: 1 | |
- name: Test | |
run: ./mill -i cs-m1-tests.test | |
build-linux-launcher: | |
runs-on: "macOS-m1" | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
- uses: coursier/[email protected] | |
with: | |
apps: "" | |
- run: .github/scripts/build-linux-aarch64.sh | |
- uses: actions/[email protected] | |
with: | |
name: linux-launcher | |
path: artifacts/ | |
if-no-files-found: error | |
retention-days: 1 | |
- run: .github/scripts/test-linux-aarch64.sh | |
upload-artifacts: | |
if: github.event_name == 'push' | |
runs-on: "ubuntu-latest" | |
needs: ["build-macos-launcher", "build-linux-launcher"] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
- name: Get macOS launchers | |
uses: actions/download-artifact@v3 | |
with: | |
name: macos-launcher | |
path: artifacts/ | |
- name: Get Linux launcher | |
uses: actions/download-artifact@v3 | |
with: | |
name: linux-launcher | |
path: artifacts/ | |
- run: ./mill -i ci.upload artifacts/ | |
env: | |
UPLOAD_GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |