-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added GitHub action support for building and testing as KCL on Linux …
…arch64 systems Signed-off-by: Abhishek Kumar <abhishek22512@gmail.com>
- Loading branch information
1 parent
6e44d3e
commit 9ae4edc
Showing
1 changed file
with
39 additions
and
0 deletions.
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,39 @@ | ||
name: Build and Test on Linux ARCH64 | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build-and-test-arm64: | ||
name: Build and Test on Linux ARM64 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
with: | ||
platforms: linux/amd64,linux/arm64 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Pull custom ARM64 Docker image | ||
run: | | ||
docker pull --platform linux/arm64 kcllang/kcl-builder-arm64 | ||
- name: Run custom ARM64 Docker image | ||
run: | | ||
docker run --rm --platform linux/arm64 \ | ||
-v ${{ github.workspace }}:/workspace -w /workspace \ | ||
kcllang/kcl-builder-arm64 \ | ||
make && make release | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: kcl-linux-arm64 | ||
path: _build/dist/ubuntu/kclvm |