-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: peefy <[email protected]>
- Loading branch information
Showing
6 changed files
with
160 additions
and
17 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 |
---|---|---|
|
@@ -30,7 +30,7 @@ jobs: | |
docker run --rm \ | ||
-v ${{ github.workspace }}:/workspace -w /workspace \ | ||
kcllang/kcl-builder:centos7 \ | ||
/bin/bash -c "yum install -y epel-release curl-devel expat-devel gettext-devel openssl-devel perl-devel zlib-devel asciidoc xmlto docbook2X gcc && rpm --import https://opensource.wandisco.com/RPM-GPG-KEY-WANdisco && wget https://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm && rpm -i wandisco-git-release-7-2.noarch.rpm && yum install git -y && source ~/.bash_profile && export PATH=$PATH:/opt/build/bin/ && sed -i 's/llvm12/llvm7/g' kclvm/compiler/Cargo.toml && git config --global --add safe.directory /workspace && git config --global user.name 'GitHub Action' && git config --global user.email '[email protected]' && git add . && git commit -m 'chore: bump llvm version to 7.0' && make && make release" | ||
/bin/bash -c "export KCL_BUILD_GIT_SHA=$(git rev-parse HEAD) && source ~/.bash_profile && export PATH=$PATH:/opt/build/bin/ && sed -i 's/llvm12/llvm7/g' kclvm/compiler/Cargo.toml && git config --global --add safe.directory /workspace && git config --global user.name 'GitHub Action' && git config --global user.email '[email protected]' && git add . && git commit -m 'chore: bump llvm version to 7.0' && make && make release" | ||
- name: Show Artifact Version | ||
run: _build/dist/centos/kclvm/bin/kclvm_cli version | ||
|
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 |
---|---|---|
|
@@ -29,11 +29,7 @@ jobs: | |
docker run --rm --platform linux/arm64 \ | ||
-v ${{ github.workspace }}:/workspace -w /workspace \ | ||
kcllang/kcl-builder-arm64 \ | ||
/bin/bash -c "make && make release" | ||
- name: Release | ||
shell: bash | ||
run: os=ubuntu topdir=$PWD ./scripts/release.sh | ||
/bin/bash -c "export KCL_BUILD_GIT_SHA=$(git rev-parse HEAD) && git config --global --add safe.directory /workspace && git config --global user.name 'GitHub Action' && git config --global user.email '[email protected]' && make && make release && _build/dist/ubuntu/kclvm/bin/kclvm_cli version" | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v4 | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,8 +1,14 @@ | ||
use std::error::Error; | ||
use vergen::EmitBuilder; | ||
use vergen_gitcl::*; | ||
|
||
fn main() -> Result<(), Box<dyn Error>> { | ||
// Emit the instructions | ||
EmitBuilder::builder().all_rustc().all_git().emit()?; | ||
let gitcl = GitclBuilder::default().sha(false).build()?; | ||
let rustc = RustcBuilder::all_rustc()?; | ||
|
||
Emitter::default() | ||
.add_instructions(&gitcl)? | ||
.add_instructions(&rustc)? | ||
.emit()?; | ||
|
||
Ok(()) | ||
} |
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