-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: tison <wander4096@gmail.com>
- Loading branch information
Showing
3 changed files
with
39 additions
and
20 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: CI | ||
on: | ||
pull_request: | ||
branches: [ main ] | ||
push: | ||
branches: [ main ] | ||
|
||
# Concurrency strategy: | ||
# github.workflow: distinguish this workflow from others | ||
# github.event_name: distinguish `push` event from `pull_request` event | ||
# github.event.number: set to the number of the pull request if `pull_request` event | ||
# github.run_id: otherwise, it's a `push` or `schedule` event, only cancel if we rerun the workflow | ||
# | ||
# Reference: | ||
# https://docs.github.com/en/actions/using-jobs/using-concurrency | ||
# https://docs.github.com/en/actions/learn-github-actions/contexts#github-context | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.number || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
os: [ 'ubuntu-latest', 'windows-latest', 'macos-latest'] | ||
java: [ '8', '11', '17', '21' ] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
cache: 'maven' | ||
distribution: 'zulu' | ||
java-version: ${{ matrix.java }} | ||
- name: Build and test | ||
run: ./test |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/bin/bash -e | ||
#!/usr/bin/env bash -e | ||
|
||
cd "$(dirname "$0")" | ||
TOP_PROJ_DIR="$PWD" | ||
BUILD_SRC_DIR="$PWD/src/build" | ||
|