Skip to content

Commit

Permalink
update workflow files.
Browse files Browse the repository at this point in the history
  • Loading branch information
YancyParker committed Jan 31, 2024
1 parent 9fd59f0 commit d78cf89
Showing 1 changed file with 7 additions and 25 deletions.
32 changes: 7 additions & 25 deletions .github/workflows/mini-ola-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: mini-ola Release
on:
push:
branches: ["pre-alpha"]
tags:
- 'pre-alpha'
pull_request:
branches: ["pre-alpha"]
workflow_dispatch:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit d78cf89

Please sign in to comment.