Skip to content

Commit

Permalink
cc: cc
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <xpf6677@163.com>
  • Loading branch information
Peefy committed Feb 4, 2024
1 parent 6ca5eb3 commit 6e12269
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build-test-linux-arm64.yml
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@v2
with:
platforms: linux/amd64,linux/arm64

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- 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
4 changes: 4 additions & 0 deletions .github/workflows/ubuntu_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ jobs:
name: Test on arm64
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
submodules: "true"
# QEMU enables you run arm64 image on x86 machines
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand Down

0 comments on commit 6e12269

Please sign in to comment.