-
-
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.
- Loading branch information
Showing
6 changed files
with
122 additions
and
61 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,50 @@ | ||
name: Build and Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
required: true | ||
type: string | ||
description: Set the version for the release in the format v1.0.0 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
discussions: write | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Build linuxX64 and linuxArm64 artifacts | ||
env: | ||
DOCKER_CLI_EXPERIMENTAL: enabled | ||
run: | | ||
docker buildx build --platform linux/amd64,linux/arm64 -f Dockerfile.build --output type=local,dest=./build_output . | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: kexe-artifacts | ||
path: | | ||
build_output/KTSynologyDDNSCloudflareMultidomainLinuxX64.kexe | ||
build_output/KTSynologyDDNSCloudflareMultidomainLinuxArm64.kexe | ||
- name: Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
tag_name: ${{ github.event.inputs.version }} | ||
files: | | ||
build_output/KTSynologyDDNSCloudflareMultidomainLinuxX64.kexe | ||
build_output/KTSynologyDDNSCloudflareMultidomainLinuxArm64.kexe | ||
generate_release_notes: true | ||
make_latest: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Build | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
required: true | ||
type: string | ||
description: Set the version for the release in the format v1.0.0 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
discussions: write | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Build linuxX64 and linuxArm64 artifacts | ||
env: | ||
DOCKER_CLI_EXPERIMENTAL: enabled | ||
run: | | ||
docker buildx build --platform linux/amd64,linux/arm64 -f Dockerfile.build --output type=local,dest=./build_output . |
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,25 @@ | ||
# Use a base image with Gradle 8.4 and JDK 21 | ||
FROM gradle:8.4-jdk21 as builder | ||
|
||
# Set the working directory inside the container | ||
WORKDIR /workspace | ||
|
||
# Copy the entire project into the working directory | ||
COPY . . | ||
|
||
# Ensure that gradlew has execute permissions | ||
RUN chmod +x ./gradlew | ||
|
||
# Install any additional dependencies needed for the build (e.g., libcurl) | ||
RUN apt-get update && apt-get install -y libcurl4-openssl-dev | ||
|
||
# Create output directory for artifacts | ||
RUN mkdir -p /workspace/build_output | ||
|
||
# Build for linux64 and rename the artifact | ||
RUN ./gradlew build -PtargetPlatform=linux64 && \ | ||
mv build/bin/native/releaseExecutable/KTSynologyDDNSCloudflareMultidomain.kexe /workspace/build_output/KTSynologyDDNSCloudflareMultidomainLinuxX64.kexe | ||
|
||
# Build for linuxArm64 and rename the artifact | ||
RUN ./gradlew build -PtargetPlatform=linuxArm64 && \ | ||
mv build/bin/native/releaseExecutable/KTSynologyDDNSCloudflareMultidomain.kexe /workspace/build_output/KTSynologyDDNSCloudflareMultidomainLinuxArm64.kexe |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[versions] | ||
kotlin = "2.0.20" | ||
ktor = "3.0.0-rc-1" | ||
ktor = "3.0.0" | ||
serialization = "1.6.3" | ||
|
||
[libraries] | ||
|