-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from CodeDead/release/v1.2.0
Release/v1.2.0
- Loading branch information
Showing
43 changed files
with
1,124 additions
and
437 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,116 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build: | ||
if: startsWith(github.ref, 'refs/tags/') | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest, macos-latest, windows-latest ] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install dependencies | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
run: sudo apt-get install -y fuse libfuse2 | ||
|
||
- name: Set up JDK 20 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '20.0.1' | ||
distribution: 'temurin' | ||
|
||
- name: Build | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: build | ||
|
||
- name: Build (jlink) | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: jlink | ||
|
||
- name: Build (jpackage) | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: jpackage | ||
|
||
- name: Publish artifacts | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
prerelease: false | ||
files: | | ||
build/jpackage/* | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
|
||
build-portable: | ||
if: startsWith(github.ref, 'refs/tags/') | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest, windows-latest ] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install dependencies | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
run: sudo apt-get install -y fuse libfuse2 | ||
|
||
- name: Set up JDK 20 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '20.0.1' | ||
distribution: 'temurin' | ||
|
||
- name: Switch portable flag (Linux) | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
run: sed -i 's/final boolean PORTABLE = false/final boolean PORTABLE = true/g' src/main/java/com/codedead/opal/utils/SharedVariables.java | ||
|
||
- name: Switch portable flag (Windows) | ||
if: ${{ matrix.os == 'windows-latest' }} | ||
run: (Get-Content src\main\java\com\codedead\opal\utils\SharedVariables.java).replace('final boolean PORTABLE = false', 'final boolean PORTABLE = true') | Set-Content src\main\java\com\codedead\opal\utils\SharedVariables.java | ||
|
||
- name: Build | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: build | ||
|
||
- name: Build (AppImage) | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: AppImage | ||
|
||
- name: Build (jlink) | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: jlink | ||
|
||
- name: Build (jpackage) | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: jpackage | ||
|
||
- name: ZIP artifacts | ||
if: ${{ matrix.os == 'windows-latest' }} | ||
run: Compress-Archive -Path build/jpackage/Opal/* -Destination build/jpackage/Opal-win-portable.zip | ||
|
||
- name: Publish artifacts | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
prerelease: false | ||
files: | | ||
build/AppImage/*.AppImage | ||
build/jpackage/*.zip | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} |
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
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 |
---|---|---|
|
@@ -39,3 +39,4 @@ logs/* | |
/default.properties | ||
/help.pdf | ||
.opal/ | ||
.com.codedead.opal/ |
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
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
Binary file not shown.
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,6 +1,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions-snapshots/gradle-8.1-20230330100852+0000-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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
Oops, something went wrong.