From d78cf898b4dcf07bad7fbdfb73ffe3de0a71cea4 Mon Sep 17 00:00:00 2001 From: yp945 Date: Wed, 31 Jan 2024 11:27:26 +0800 Subject: [PATCH] update workflow files. --- .github/workflows/mini-ola-release.yml | 32 ++++++-------------------- 1 file changed, 7 insertions(+), 25 deletions(-) diff --git a/.github/workflows/mini-ola-release.yml b/.github/workflows/mini-ola-release.yml index d4150ce7..bcb109c9 100644 --- a/.github/workflows/mini-ola-release.yml +++ b/.github/workflows/mini-ola-release.yml @@ -2,6 +2,8 @@ name: mini-ola Release on: push: branches: ["pre-alpha"] + tags: + - 'pre-alpha' pull_request: branches: ["pre-alpha"] workflow_dispatch: @@ -23,12 +25,8 @@ jobs: uses: dtolnay/rust-toolchain@nightly with: components: rustfmt - - name: Install LLVM and Clang - uses: KyleMayes/install-llvm-action@v1 - with: - version: 15 - name: Build - run: cargo build --release + run: cargo build --release --package mini-ola - name: Upload binary uses: svenstaro/upload-release-action@v2 with: @@ -47,13 +45,9 @@ jobs: - name: Install Rust uses: dtolnay/rust-toolchain@nightly with: - components: rustfmt - - name: Install LLVM and Clang - uses: KyleMayes/install-llvm-action@v1 - with: - version: 15 + components: rustfmt - name: Build - run: cargo build --release + run: cargo build --release --package mini-ola - name: Upload binary uses: svenstaro/upload-release-action@v2 with: @@ -73,14 +67,8 @@ jobs: uses: dtolnay/rust-toolchain@nightly with: components: rustfmt - - name: Get LLVM - run: curl -sSL --output clang+llvm-15.0.7-arm64-apple-darwin22.0.tar.xz https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.7/clang+llvm-15.0.7-arm64-apple-darwin22.0.tar.xz - - name: Extract LLVM - run: tar Jxf clang+llvm-15.0.7-arm64-apple-darwin22.0.tar.xz && mv clang+llvm-15.0.7-arm64-apple-darwin22.0 llvm15.0 - - name: Add LLVM to Path - run: echo "$(pwd)/llvm15.0/bin" >> $GITHUB_PATH - name: Build - run: cargo build --release + run: cargo build --release --package mini-ola - name: Upload binary uses: svenstaro/upload-release-action@v2 with: @@ -100,14 +88,8 @@ jobs: uses: dtolnay/rust-toolchain@nightly with: components: rustfmt - - name: Download LLVM - run: curl -sSL -o c:\llvm.zip https://github.com/hyperledger/solang-llvm/releases/download/llvm15-1/llvm15.0-win.zip - - name: Extract LLVM - run: unzip c:\llvm.zip -d c:/ - - name: Add LLVM to Path - run: echo "c:\llvm15.0\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 - name: Build - run: cargo build --release + run: cargo build --release --package mini-ola - name: Upload binary uses: svenstaro/upload-release-action@v2 with: