bugfix: Add echos #213
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-m1", "macos-latest"] | |
include: | |
- OS: "macOS-m1" | |
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-latest" | |
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-m1' | |
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: "" | |
- name: Build Linux aarch64 launcher | |
run: | | |
set -euv | |
mkdir -p artifacts | |
mkdir -p utils | |
cp "$(cs get https://github.com/coursier/coursier/releases/download/v2.0.16/cs-aarch64-pc-linux)" utils/cs | |
chmod +x utils/cs | |
cp ".github/scripts/build-linux-aarch64-from-docker.sh" utils/ | |
docker run $(if test -t 1; then echo "-it"; fi) --rm \ | |
--volume "$(pwd):/data" \ | |
-w /data \ | |
-e "CI=$CI" \ | |
ubuntu:20.04 \ | |
/data/utils/build-linux-aarch64-from-docker.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 }} |