Have two build workflows
One for main and next-version, One for snapshot. This way workflows in various branches don't differ: simpler to maintain.
This commit is contained in:
52
.github/workflows/build-on-commit.yaml
vendored
52
.github/workflows/build-on-commit.yaml
vendored
@@ -2,62 +2,22 @@ name: Build on commit
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- snapshot
|
- master
|
||||||
|
- next-version
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
working-directory: ./template
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout OPENRNDR repository
|
- uses: actions/checkout@v6
|
||||||
uses: actions/checkout@v6
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
repository: openrndr/openrndr
|
|
||||||
path: ./openrndr
|
|
||||||
ref: master
|
|
||||||
|
|
||||||
- name: Checkout ORX repository
|
|
||||||
uses: actions/checkout@v6
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
repository: openrndr/orx
|
|
||||||
path: ./orx
|
|
||||||
ref: master
|
|
||||||
|
|
||||||
- name: Checkout current repository
|
|
||||||
uses: actions/checkout@v6
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
repository: openrndr/openrndr-template
|
|
||||||
path: ./template
|
|
||||||
ref: snapshot
|
|
||||||
|
|
||||||
- uses: actions/setup-java@v5
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version: 21
|
java-version: 21
|
||||||
|
#cache: 'gradle'
|
||||||
|
|
||||||
- name: Setup Gradle
|
- name: Setup Gradle
|
||||||
uses: gradle/actions/setup-gradle@v4
|
uses: gradle/actions/setup-gradle@v5
|
||||||
|
|
||||||
- name: Set swap space
|
- name: Build sources
|
||||||
uses: pierotofy/set-swap-space@v1.0
|
|
||||||
with:
|
|
||||||
swap-size-gb: 8
|
|
||||||
|
|
||||||
- name: Build OPENRNDR
|
|
||||||
working-directory: ./openrndr
|
|
||||||
run: ./gradlew publishToMavenLocal snapshot
|
|
||||||
|
|
||||||
- name: Build ORX
|
|
||||||
working-directory: ./orx
|
|
||||||
run: ./gradlew publishToMavenLocal snapshot
|
|
||||||
|
|
||||||
- name: Build template
|
|
||||||
working-directory: ./template
|
|
||||||
run: ./gradlew build
|
run: ./gradlew build
|
||||||
|
|
||||||
|
|||||||
63
.github/workflows/build-snapshot-on-commit.yaml
vendored
Normal file
63
.github/workflows/build-snapshot-on-commit.yaml
vendored
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
name: Build snapshot on commit
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- snapshot
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: ./template
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout OPENRNDR repository
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
repository: openrndr/openrndr
|
||||||
|
path: ./openrndr
|
||||||
|
ref: master
|
||||||
|
|
||||||
|
- name: Checkout ORX repository
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
repository: openrndr/orx
|
||||||
|
path: ./orx
|
||||||
|
ref: master
|
||||||
|
|
||||||
|
- name: Checkout current repository
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
repository: openrndr/openrndr-template
|
||||||
|
path: ./template
|
||||||
|
ref: snapshot
|
||||||
|
|
||||||
|
- uses: actions/setup-java@v5
|
||||||
|
with:
|
||||||
|
distribution: temurin
|
||||||
|
java-version: 21
|
||||||
|
|
||||||
|
- name: Setup Gradle
|
||||||
|
uses: gradle/actions/setup-gradle@v5
|
||||||
|
|
||||||
|
- name: Set swap space
|
||||||
|
uses: pierotofy/set-swap-space@v1.0
|
||||||
|
with:
|
||||||
|
swap-size-gb: 8
|
||||||
|
|
||||||
|
- name: Build OPENRNDR
|
||||||
|
working-directory: ./openrndr
|
||||||
|
run: ./gradlew publishToMavenLocal snapshot
|
||||||
|
|
||||||
|
- name: Build ORX
|
||||||
|
working-directory: ./orx
|
||||||
|
run: ./gradlew publishToMavenLocal snapshot
|
||||||
|
|
||||||
|
- name: Build template
|
||||||
|
working-directory: ./template
|
||||||
|
run: ./gradlew build
|
||||||
|
|
||||||
Reference in New Issue
Block a user