-
Notifications
You must be signed in to change notification settings - Fork 2
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
2 changed files
with
54 additions
and
1 deletion.
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,52 @@ | ||
name: Build native binaries | ||
on: [pull_request] | ||
jobs: | ||
build: | ||
name: Build kubectl-kport and kport-ide-server native binaries on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [macos-latest,windows-latest,ubuntu-latest] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: graalvm/setup-graalvm@v1 | ||
with: | ||
version: '22.3.2' | ||
java-version: '17' | ||
components: "native-image" | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
native-image-job-reports: 'false' | ||
|
||
- name: Build All on ${{ matrix.os }} | ||
run: | | ||
mvn clean install -DskipTests -Dnative | ||
- name: Upload kubectl for Windows | ||
if: matrix.os == 'windows-latest' | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: kubectl-kport-${{ runner.os }}.exe | ||
path: kubectl-kport/target/kubectl-kport.exe | ||
|
||
- name: Upload kport-ide-server for Windows | ||
if: matrix.os == 'windows-latest' | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: kport-ide-server-${{ runner.os }}.exe | ||
path: kport-ide-server/target/kport-ide-server.exe | ||
|
||
- name: Upload kubectl | ||
if: matrix.os != 'windows-latest' | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: kubectl-kport-${{ runner.os }} | ||
path: kubectl-kport/target/kubectl-kport | ||
|
||
- name: Upload kport-ide-server | ||
if: matrix.os != 'windows-latest' | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: kport-ide-server-${{ runner.os }} | ||
path: kport-ide-server/target/kport-ide-server | ||
|
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,4 +1,5 @@ | ||
quarkus.native.additional-build-args=--initialize-at-run-time=org.eclipse.jkube.kit.common.util.IoUtil | ||
quarkus.native.resources.includes=META-INF/jkube/remote-dev.properties | ||
quarkus.http.port=10680 | ||
|
||
quarkus.package.add-runner-suffix=false | ||
quarkus.package.output-name=kport-ide-server |