Skip to content

Commit

Permalink
zzz: centos7
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed Jun 25, 2024
1 parent 76a054e commit aa2123d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// README at: https://github.com/devcontainers/templates/tree/main/src/alpine
{
// ref: https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/adding-a-dev-container-configuration/introduction-to-dev-containers#dockerfile
"image": "docker.io/kcllang/kcl-builder:latest",
"image": "docker.io/kcllang/kcl-builder:centos7",
"customizations": {
"vscode": {
"extensions": [
Expand Down
26 changes: 20 additions & 6 deletions .github/workflows/build-test-centos7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,33 @@ jobs:
build-and-test-centos7:
name: Build and Test on Linux ARM64
runs-on: ubuntu-latest
container: kcllang/kcl-builder:centos7
steps:
- name: Check out code
uses: actions/checkout@v3
with:
submodules: "true"

- name: Run custom ARM64 Docker image
- 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:centos7
- name: Release
run: |
source ~/.bash_profile
cat ~/.bash_profile
export PATH=$PATH:/opt/build/bin && sed -i '' 's/llvm12/llvm7/g' kclvm/compiler/Cargo.toml
make && make release
docker run --rm --platform linux/arm64 \
-v ${{ github.workspace }}:/workspace -w /workspace \
kcllang/kcl-builder-arm64 \
source ~/.bash_profile &&
cat ~/.bash_profile &&
export PATH=$PATH:/opt/build/bin && sed -i '' 's/llvm12/llvm7/g' kclvm/compiler/Cargo.toml &&
make && make release
- name: Upload Artifact
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit aa2123d

Please sign in to comment.