Skip to content

Commit

Permalink
chore: Create build-native.yml (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunix committed Jun 20, 2023
1 parent 3f80fb5 commit 939e1c3
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 1 deletion.
52 changes: 52 additions & 0 deletions .github/workflows/build-native.yml
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

3 changes: 2 additions & 1 deletion kport-ide-server/src/main/resources/application.properties
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

0 comments on commit 939e1c3

Please sign in to comment.