Skip to content

Commit 7a99aa7

Browse files
committed
add workflows
1 parent 4e2d576 commit 7a99aa7

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

.github/workflows/build.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [ main ]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: set up JDK 21
17+
uses: actions/setup-java@v4
18+
with:
19+
distribution: 'zulu'
20+
java-version: 21
21+
22+
- name: Assemble & Linters
23+
run: ./gradlew :linkReleaseExecutableLinuxArm64

.github/workflows/release.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [ published ]
6+
7+
jobs:
8+
build:
9+
runs-on: macos-latest
10+
permissions:
11+
contents: write
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: set up JDK 21
16+
uses: actions/setup-java@v4
17+
with:
18+
distribution: 'zulu'
19+
java-version: 21
20+
21+
- name: Assemble & Linters
22+
run: ./gradlew :linkReleaseExecutableLinuxArm64 :linkReleaseExecutableLinuxX64 :linkReleaseExecutableMacosArm64 :linkReleaseExecutableMacosX64 :linkReleaseExecutableMingwX64
23+
24+
- name: Rename executables
25+
run: |
26+
mkdir build/out
27+
cd build/bin/linuxArm64/releaseExecutable/ && mv git-rebase-editor.kexe git-rebase-editor && zip ../../../out/git-rebase-editor-linux-arm64.zip git-rebase-editor && cd ../../../../
28+
cd build/bin/linuxX64/releaseExecutable/ && mv git-rebase-editor.kexe git-rebase-editor && zip ../../../out/git-rebase-editor-linux-x64.zip git-rebase-editor && cd ../../../../
29+
cd build/bin/macosArm64/releaseExecutable/ && mv git-rebase-editor.kexe git-rebase-editor && zip ../../../out/git-rebase-editor-macos-arm64.zip git-rebase-editor && cd ../../../../
30+
cd build/bin/macosX64/releaseExecutable/ && mv git-rebase-editor.kexe git-rebase-editor && zip ../../../out/git-rebase-editor-macos-x64.zip git-rebase-editor && cd ../../../../
31+
cd build/bin/mingwX64/releaseExecutable/ && zip ../../../out/git-rebase-editor-windows-x64.zip git-rebase-editor.exe && cd ../../../../
32+
33+
- name: Upload APK to release
34+
uses: softprops/action-gh-release@v2
35+
id: release
36+
with:
37+
files: build/out/*.zip

0 commit comments

Comments
 (0)