Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
10 changes: 7 additions & 3 deletions .github/workflows/alpine_linux_musl_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,19 @@ jobs:
git config --global user.email 'action@github.com' && \
make && \
make release && \
_build/dist/linux/kclvm/bin/kclvm_cli version"
_build/dist/linux/core/libkcl version"
- name: Read VERSION file
id: read_version
run: |
VERSION=$(cat VERSION)
VERSION=$(cargo pkgid -p kcl-api | cut -d'@' -f2)
echo "VERSION=v${VERSION}" >> $GITHUB_ENV

- name: Rename artifact name with version
run: sudo mv -f _build/dist/linux/kcl-latest-linux-amd64.tar.gz _build/dist/linux/kcl-$VERSION-linux-amd64.tar.gz

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: kcl-${{ env.VERSION }}-linux-musl
if-no-files-found: error
path: _build/kclvm-${{ env.VERSION }}-linux-amd64.tar.gz
path: _build/dist/linux/kcl-${{ env.VERSION }}-linux-amd64.tar.gz
53 changes: 0 additions & 53 deletions .github/workflows/centos7_test.yaml

This file was deleted.

16 changes: 4 additions & 12 deletions .github/workflows/compiler_base_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,10 @@ jobs:
- name: Install rust nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.84.1
toolchain: 1.88
override: true
components: clippy, rustfmt
- name: Rust code format check
working-directory: ./compiler_base
run: cargo fmt --check
shell: bash

test-codecov-lcov:
name: Test
strategy:
Expand All @@ -43,15 +40,10 @@ jobs:
- name: Install rust nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.84.1
toolchain: 1.88
override: true
components: clippy, rustfmt
- name: Compiler_base rust unit test
working-directory: ./compiler_base
run: make codecov-lcov
run: make test
shell: bash
- name: Coveralls upload
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./compiler_base/.compiler_base/lcov.info
19 changes: 8 additions & 11 deletions .github/workflows/macos_arm_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,35 +33,32 @@ jobs:
- name: Install rust nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.84.1
toolchain: 1.88
override: true
components: clippy, rustfmt
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Grammar test
working-directory: ./kclvm
run: export PATH=$PATH:$PWD/../_build/dist/darwin/kclvm/bin && make && make test-grammar
shell: bash
- name: Evaluator Grammar test
working-directory: ./kclvm
run: export PATH=$PATH:$PWD/../_build/dist/darwin/kclvm/bin && make test-grammar-evaluator
run: export PATH=$PATH:$PWD/_build/dist/darwin/core && make && make test-grammar
shell: bash

- name: Release
run: export PATH=$PATH:$PWD/../_build/dist/darwin/kclvm/bin && make release
run: export PATH=$PATH:$PWD/_build/dist/darwin/core && make release
shell: bash

- name: Read VERSION file
id: read_version
run: |
VERSION=$(cat VERSION)
VERSION=$(cargo pkgid -p kcl-api | cut -d'@' -f2)
echo "VERSION=v${VERSION}" >> $GITHUB_ENV

- name: Rename artifact name with version
run: sudo mv -f _build/dist/darwin/kcl-latest-darwin-arm64.tar.gz _build/dist/darwin/kcl-${{ env.VERSION }}-darwin-arm64.tar.gz

- uses: actions/upload-artifact@v4
if: "contains(matrix.os, 'macos-13-xlarge')"
with:
name: kcl-${{ env.VERSION }}-darwin-arm64
if-no-files-found: error
path: _build/kclvm-${{ env.VERSION }}-darwin-arm64.tar.gz
path: _build/dist/darwin/kcl-${{ env.VERSION }}-darwin-arm64.tar.gz
32 changes: 10 additions & 22 deletions .github/workflows/macos_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,49 +47,37 @@ jobs:
- name: Install rust nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.84.1
toolchain: 1.88
override: true
components: clippy, rustfmt
- name: Code format check
working-directory: ./kclvm
run: cargo fmt --check
shell: bash
- name: Grammar test
working-directory: ./kclvm
run: export PATH=$PATH:$PWD/../_build/dist/darwin/kclvm/bin && make && make test-grammar
shell: bash
- name: Evaluator Grammar test
working-directory: ./kclvm
run: export PATH=$PATH:$PWD/../_build/dist/darwin/kclvm/bin && make test-grammar-evaluator
run: export PATH=$PATH:$PWD/_build/dist/darwin/core && make && make test-grammar
shell: bash
- name: Runtime test
working-directory: ./kclvm
run: export PATH=$PATH:$PWD/../_build/dist/darwin/kclvm/bin && make test-runtime
run: export PATH=$PATH:$PWD/_build/dist/darwin/core && make test-runtime
shell: bash

- name: Unit test
working-directory: ./kclvm
run: export PATH=$PATH:$PWD/../_build/dist/darwin/kclvm/bin && make codecov-lcov
run: export PATH=$PATH:$PWD/_build/dist/darwin/core && make test
shell: bash

- name: Coveralls upload
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./kclvm/.kclvm_cov/lcov.info

- name: Release
run: export PATH=$PATH:$PWD/../_build/dist/darwin/kclvm/bin && make release
run: export PATH=$PATH:$PWD/../_build/dist/darwin/core && make release
shell: bash

- name: Read VERSION file
id: read_version
run: |
VERSION=$(cat VERSION)
VERSION=$(cargo pkgid -p kcl-api | cut -d'@' -f2)
echo "VERSION=v${VERSION}" >> $GITHUB_ENV

- name: Rename artifact name with version
run: sudo mv -f _build/dist/darwin/kcl-latest-darwin-amd64.tar.gz _build/dist/darwin/kcl-${{ env.VERSION }}-darwin-amd64.tar.gz

- uses: actions/upload-artifact@v4
with:
name: kcl-${{ env.VERSION }}-darwin-amd64
if-no-files-found: error
path: _build/kclvm-${{ env.VERSION }}-darwin-amd64.tar.gz
path: _build/dist/darwin/kcl-${{ env.VERSION }}-darwin-amd64.tar.gz
29 changes: 11 additions & 18 deletions .github/workflows/ubuntu_arm_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,55 +32,48 @@ jobs:
- name: Install rust nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.84.1
toolchain: 1.88
override: true
components: clippy, rustfmt
- name: Code format check
working-directory: ./kclvm
run: cargo fmt --check
shell: bash
- name: chmod
run: |
chmod -R 777 kclvm
chmod -R 777 crates
- name: Code clippy check
working-directory: ./kclvm
run: cargo clippy --no-deps -r
shell: bash
- name: Grammar test
working-directory: ./kclvm
run: export PATH=$PATH:$PWD/../_build/dist/linux/kclvm/bin && make && make test-grammar
shell: bash
- name: Evaluator Grammar test
working-directory: ./kclvm
run: export PATH=$PATH:$PWD/../_build/dist/linux/kclvm/bin && make test-grammar-evaluator
run: export PATH=$PATH:$PWD/_build/dist/linux/core && make && make test-grammar
shell: bash
- name: Runtime test
working-directory: ./kclvm
run: export PATH=$PATH:$PWD/../_build/dist/linux/kclvm/bin && make test-runtime
run: export PATH=$PATH:$PWD/_build/dist/linux/core && make test-runtime
shell: bash
- name: Install KCL CLI
run: |
go install kcl-lang.io/cli/cmd/kcl@main
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
echo "${{ github.workspace }}/go/bin" >> $GITHUB_PATH
- name: Unit test
working-directory: ./kclvm
run: export PATH=$PATH:$PWD/../_build/dist/linux/kclvm/bin && make test
run: export PATH=$PATH:$PWD/_build/dist/linux/core && make test
shell: bash

- name: Release
run: export PATH=$PATH:$PWD/../_build/dist/linux/kclvm/bin && make release
run: export PATH=$PATH:$PWD/_build/dist/linux/core && make release
shell: bash

- name: Read VERSION file
id: read_version
run: |
VERSION=$(cat VERSION)
VERSION=$(cargo pkgid -p kcl-api | cut -d'@' -f2)
echo "VERSION=v${VERSION}" >> $GITHUB_ENV

- name: Rename artifact name with version
run: sudo mv -f _build/dist/linux/kcl-latest-linux-arm64.tar.gz _build/dist/linux/kcl-${{ env.VERSION }}-linux-arm64.tar.gz

- uses: actions/upload-artifact@v4
with:
name: kcl-${{ env.VERSION }}-linux-arm64
if-no-files-found: error
path: _build/kclvm-${{ env.VERSION }}-linux-arm64.tar.gz

path: _build/dist/linux/kcl-${{ env.VERSION }}-linux-arm64.tar.gz
18 changes: 4 additions & 14 deletions .github/workflows/ubuntu_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,36 +32,26 @@ jobs:
- name: Install rust nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.84.1
toolchain: 1.88
override: true
components: clippy, rustfmt
- name: Code format check
working-directory: ./kclvm
run: cargo fmt --check
shell: bash
- name: Code clippy check
working-directory: ./kclvm
run: cargo clippy --no-deps -r
shell: bash
- name: Grammar test
working-directory: ./kclvm
run: export PATH=$PATH:$PWD/../_build/dist/linux/kclvm/bin && make && make test-grammar
shell: bash
- name: Evaluator Grammar test
working-directory: ./kclvm
run: export PATH=$PATH:$PWD/../_build/dist/linux/kclvm/bin && make test-grammar-evaluator
run: export PATH=$PATH:$PWD/_build/dist/linux/core && make && make test-grammar
shell: bash
- name: Runtime test
working-directory: ./kclvm
run: export PATH=$PATH:$PWD/../_build/dist/linux/kclvm/bin && make test-runtime
run: export PATH=$PATH:$PWD/_build/dist/linux/core && make test-runtime
shell: bash
- name: Install KCL CLI
run: |
go install kcl-lang.io/cli/cmd/kcl@main
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
echo "${{ github.workspace }}/go/bin" >> $GITHUB_PATH
- name: Unit test
working-directory: ./kclvm
run: export PATH=$PATH:$PWD/../_build/dist/linux/kclvm/bin && make test
run: export PATH=$PATH:$PWD/_build/dist/linux/core && make test
shell: bash

23 changes: 11 additions & 12 deletions .github/workflows/wasm_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,18 @@ jobs:
- name: Install rust nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.83
toolchain: 1.88
override: true
components: clippy, rustfmt

- name: Unit test
working-directory: ./kclvm
run: |
rustup target add wasm32-wasip1 && make build-wasm
mv target/wasm32-wasip1/release/kclvm_cli_cdylib.wasm target/wasm32-wasip1/release/kcl.wasm
shell: bash
# - name: Build WASM
# run: |
# rustup target add wasm32-wasip1 && make build-wasm
# mv target/wasm32-wasip1/release/kcl.wasm target/wasm32-wasip1/release/kcl.wasm
# shell: bash

- uses: actions/upload-artifact@v4
with:
name: kcl-wasm
if-no-files-found: error
path: kclvm/target/wasm32-wasip1/release/kcl.wasm
# - uses: actions/upload-artifact@v4
# with:
# name: kcl-wasm
# if-no-files-found: error
# path: target/wasm32-wasip1/release/kcl.wasm
16 changes: 8 additions & 8 deletions .github/workflows/windows_mingw_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,30 +19,30 @@ jobs:
- name: Install rust nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.84.1
toolchain: 1.88
override: true
components: clippy, rustfmt

- run: C:\msys64\usr\bin\pacman.exe -S --needed mingw-w64-x86_64-gcc --noconfirm
- shell: pwsh
run: echo "C:\msys64\mingw64\bin" >> $Env:GITHUB_PATH

- working-directory: ./kclvm
run: |
- run: |
rustup target add x86_64-pc-windows-gnu
cargo build -r --target x86_64-pc-windows-gnu

- name: Read VERSION file
id: read_version
run: |
$version = Get-Content VERSION
$pkgId = cargo pkgid -p kcl-api
$version = ($pkgId -split '@')[1]
echo "VERSION=v$version" >> $env:GITHUB_ENV

- uses: actions/upload-artifact@v4
with:
name: kclvm-${{ env.VERSION }}-windows-mingw
name: kcl-${{ env.VERSION }}-windows-mingw
if-no-files-found: error
path: |
kclvm/target/x86_64-pc-windows-gnu/release/libkclvm_cli_cdylib.a
kclvm/target/x86_64-pc-windows-gnu/release/libkclvm_cli_cdylib.dll.a
kclvm/target/x86_64-pc-windows-gnu/release/kclvm_cli_cdylib.dll
target/x86_64-pc-windows-gnu/release/libkcl.a
target/x86_64-pc-windows-gnu/release/libkcl.dll.a
target/x86_64-pc-windows-gnu/release/kcl.dll
Loading
Loading