Compare commits
2 Commits
ec8c649150
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
160a7eba06 | ||
| 8d22177084 |
56
.github/workflows/release.yml
vendored
56
.github/workflows/release.yml
vendored
@@ -1,4 +1,4 @@
|
||||
name: Build and Release Native Binaries
|
||||
name: Compile and Release Binaries
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -15,61 +15,61 @@ jobs:
|
||||
platform: linux-x64
|
||||
- os: macos-latest
|
||||
platform: macos-arm64
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
|
||||
- name: Install dependencies (Linux only)
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
run: "sudo apt-get update && sudo apt-get install -y libssl-dev"
|
||||
|
||||
- name: Setup GraalVM
|
||||
uses: graalvm/setup-graalvm@v1
|
||||
with:
|
||||
java-version: '24'
|
||||
distribution: 'graalvm'
|
||||
java-version: "24"
|
||||
distribution: "graalvm"
|
||||
components: "native-image"
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Setup Gradle
|
||||
uses: gradle/actions/setup-gradle@v3
|
||||
|
||||
- name: Build project
|
||||
run: gradle build
|
||||
|
||||
- name: Build native binary
|
||||
run: gradle nativeCompile
|
||||
|
||||
- name: Install UPX (Linux)
|
||||
|
||||
- name: Build JAR
|
||||
run: ./gradlew build
|
||||
|
||||
- name: Compile native binary
|
||||
run: ./gradlew nativeCompile
|
||||
|
||||
- name: Install UPX (Linux only)
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
run: sudo apt-get update && sudo apt-get install -y upx
|
||||
|
||||
run: sudo apt-get update && apt-get install -y upx
|
||||
|
||||
- name: Compress binary with UPX (Linux only)
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
run: upx --best --lzma build/native/nativeCompile/notevc
|
||||
|
||||
|
||||
- name: Rename binary for platform
|
||||
run: |
|
||||
mv build/native/nativeCompile/notevc notevc-${{ matrix.platform }}
|
||||
|
||||
run: mv build/native/nativeCompile/notevc notevc-${{ matrix.platform }}
|
||||
|
||||
- name: Upload binary as artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: notevc-${{ matrix.platform }}
|
||||
path: notevc-${{ matrix.platform }}
|
||||
|
||||
|
||||
release:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
|
||||
steps:
|
||||
- name: Download all artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
path: binaries
|
||||
|
||||
- name: Create Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
|
||||
- name: Create release
|
||||
uses: actions/gitea-release-action@v1
|
||||
with:
|
||||
files: binaries/*/*
|
||||
draft: false
|
||||
|
||||
4
.gitignore
vendored
4
.gitignore
vendored
@@ -29,3 +29,7 @@ Thumbs.db
|
||||
# Other
|
||||
*.hprof
|
||||
**/.notevc/
|
||||
|
||||
!gradle/wrapper/
|
||||
!gradle/wrapper/gradle-wrapper.jar
|
||||
!gradle/wrapper/gradle-wrapper.properties
|
||||
|
||||
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
Binary file not shown.
Reference in New Issue
Block a user