-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into arm64-aarch64
# Conflicts: # .github/workflows/release.yml
- Loading branch information
Showing
8 changed files
with
253 additions
and
39 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
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,38 @@ | ||
name: Test on macOS 12 x86-64 | ||
|
||
on: [ push,workflow_dispatch,workflow_call ] | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-12 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
- name: Build & Test x86-64 mainnet | ||
timeout-minutes: 10 | ||
run: | | ||
git fetch -a | ||
git checkout main | ||
mkdir artifacts | ||
mvn clean compile package -DskipTests | ||
cp target/MyLocalTon.jar artifacts/MyLocalTon-x86-64.jar | ||
java -jar artifacts/MyLocalTon-x86-64.jar nogui debug test-binaries | ||
- name: Build & Test x86-64 testnet | ||
timeout-minutes: 10 | ||
run: | | ||
mvn clean compile package -DskipTests -Dton_branch=testnet | ||
cp target/MyLocalTon.jar artifacts/MyLocalTon-x86-64-testnet.jar | ||
java -jar artifacts/MyLocalTon-x86-64-testnet.jar nogui debug test-binaries | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: All-MyLocalTon-Jars | ||
path: artifacts |
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,38 @@ | ||
name: Test on Ubuntu 22.04 x86-64 | ||
|
||
on: [ push,workflow_dispatch,workflow_call ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
- name: Build & Test x86-64 mainnet | ||
timeout-minutes: 10 | ||
run: | | ||
git fetch -a | ||
git checkout main | ||
mkdir artifacts | ||
mvn clean compile package -DskipTests | ||
cp target/MyLocalTon.jar artifacts/MyLocalTon-x86-64.jar | ||
java -jar artifacts/MyLocalTon-x86-64.jar nogui debug test-binaries | ||
- name: Build & Test x86-64 testnet | ||
timeout-minutes: 10 | ||
run: | | ||
mvn clean compile package -DskipTests -Dton_branch=testnet | ||
cp target/MyLocalTon.jar artifacts/MyLocalTon-x86-64-testnet.jar | ||
java -jar artifacts/MyLocalTon-x86-64-testnet.jar nogui debug test-binaries | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: All-MyLocalTon-Jars | ||
path: artifacts |
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,38 @@ | ||
name: Test on Windows x86-64 | ||
|
||
on: [ push,workflow_dispatch,workflow_call ] | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-2019 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
- name: Build & Test x86-64 mainnet | ||
timeout-minutes: 10 | ||
run: | | ||
git fetch -a | ||
git checkout main | ||
mkdir artifacts | ||
mvn clean compile package -DskipTests | ||
cp target/MyLocalTon.jar artifacts/MyLocalTon-x86-64.jar | ||
java -jar artifacts/MyLocalTon-x86-64.jar nogui debug test-binaries | ||
- name: Build & Test x86-64 testnet | ||
timeout-minutes: 10 | ||
run: | | ||
mvn clean compile package -DskipTests -Dton_branch=testnet | ||
cp target/MyLocalTon.jar artifacts/MyLocalTon-x86-64-testnet.jar | ||
java -jar artifacts/MyLocalTon-x86-64-testnet.jar nogui debug test-binaries | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: All-MyLocalTon-Jars | ||
path: artifacts |
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,75 @@ | ||
name: Create release | ||
|
||
on: [ workflow_dispatch ] | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-2019 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
- name: Build x86-64 mainnet | ||
run: | | ||
mkdir artifacts | ||
git fetch -a | ||
mvn clean compile package -DskipTests | ||
cp target/MyLocalTon.jar artifacts/MyLocalTon-x86-64.jar | ||
- name: Build x86-64 testnet | ||
run: | | ||
mvn clean compile package -DskipTests -Dton_branch=testnet | ||
cp target/MyLocalTon.jar artifacts/MyLocalTon-x86-64-testnet.jar | ||
- name: Build arm64-aarch64 mainnet | ||
run: | | ||
git checkout arm64-aarch64 | ||
mvn clean compile package -DskipTests | ||
cp target/MyLocalTon.jar artifacts/MyLocalTon-arm64.jar | ||
- name: Build arm64-aarch64 testnet | ||
run: | | ||
mvn clean compile package -DskipTests -Dton_branch=testnet | ||
cp target/MyLocalTon.jar artifacts/MyLocalTon-arm64-testnet.jar | ||
- name: Checkout main branch | ||
run: | | ||
git checkout main | ||
ls artifacts | ||
- name: Read CHANGELOG.md and use it as a body of new release | ||
id: read_release | ||
shell: bash | ||
run: | | ||
r=$(cat CHANGELOG.md) | ||
r="${r//'%'/'%25'}" | ||
r="${r//$'\n'/'%0A'}" | ||
r="${r//$'\r'/'%0D'}" | ||
echo "::set-output name=CHANGELOG_BODY::$r" | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: v${{ github.run_number }} | ||
release_name: MyLocalTon v${{ github.run_number }} | ||
body: | | ||
${{ steps.read_release.outputs.CHANGELOG_BODY }} | ||
draft: false | ||
prerelease: true | ||
|
||
- name: Upload binaries to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: artifacts/*.jar | ||
tag: v${{ github.run_number }} | ||
overwrite: true | ||
file_glob: true |
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
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