Skip to content

Commit

Permalink
Add GitHub ARM64 runners (#1642)
Browse files Browse the repository at this point in the history
Use github provided runners rather than our own.

Signed-off-by: Ry Jones <ry@linux.com>
Signed-off-by: Sean Young <sean@mess.org>
  • Loading branch information
ryjones committed May 2, 2024
1 parent 9c06f58 commit 10c6e57
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/release.yml
Expand Up @@ -30,15 +30,24 @@ jobs:

linux-arm64:
name: Linux arm64
runs-on: linux-arm64
runs-on: solang-arm
if: ${{ github.repository_owner == 'hyperledger' }}
container: ghcr.io/hyperledger/solang-llvm:ci-7
steps:
- name: Checkout sources
uses: actions/checkout@v3.1.0
with:
submodules: recursive
- name: Basic build tools
run: |
sudo apt-get update
sudo apt-get install -y gcc g++ make
- uses: dtolnay/rust-toolchain@1.74.0
- name: Get LLVM
run: curl -sSL --output llvm16.0-linux-arm64.tar.xz https://github.com/hyperledger/solang-llvm/releases/download/llvm16-0/llvm16.0-linux-arm64.tar.xz
- name: Extract LLVM
run: tar Jxf llvm16.0-linux-arm64.tar.xz
- name: Add LLVM to Path
run: echo "$(pwd)/llvm16.0/bin" >> $GITHUB_PATH
- name: Build
run: cargo build --verbose --release
- name: Run tests
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/test.yml
Expand Up @@ -109,15 +109,24 @@ jobs:

linux-arm:
name: Linux Arm
runs-on: linux-arm64
runs-on: solang-arm
if: ${{ github.repository_owner == 'hyperledger' }}
container: ghcr.io/hyperledger/solang-llvm:ci-7
steps:
- name: Checkout sources
uses: actions/checkout@v3
with:
submodules: recursive
- name: Basic build tools
run: |
sudo apt-get update
sudo apt-get install -y gcc g++ make
- uses: dtolnay/rust-toolchain@1.74.0
- name: Get LLVM
run: curl -sSL --output llvm16.0-linux-arm64.tar.xz https://github.com/hyperledger/solang-llvm/releases/download/llvm16-0/llvm16.0-linux-arm64.tar.xz
- name: Extract LLVM
run: tar Jxf llvm16.0-linux-arm64.tar.xz
- name: Add LLVM to Path
run: echo "$(pwd)/llvm16.0/bin" >> $GITHUB_PATH
- name: Build
run: cargo build --verbose
- name: Run tests
Expand Down

0 comments on commit 10c6e57

Please sign in to comment.