forked from vitalibo/bitbake-intellij-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github: Add build workflow, build on every push
First implementation, might need some fine tuning. Signed-off-by: Florian Bezdeka <[email protected]>
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 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,32 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
gradle: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version: 17 | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
with: | ||
gradle-version: 7.4 | ||
|
||
- name: Execute Gradle build | ||
run: gradle build -Pversion=$(git describe --dirty --tags --always) | ||
|
||
- name: Upload build artifacts | ||
uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: Intellij Plugin | ||
path: build/libs |