Skip to content

Commit e31f319

Browse files
authored
feat(ci): Build releases in self-hosted-ghr, fetch solidity, lllc from github releases (#1990)
* fix(github): Build releases in self-hosted-ghr * feat(github): Fetch solidity, lllc from github releases
1 parent b6eb507 commit e31f319

File tree

3 files changed

+69
-2
lines changed

3 files changed

+69
-2
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: "Fetch and Install Binary"
2+
description: "Downloads a binary from a GitHub release, verifies its checksum, and installs it to PATH. Only works for Linux."
3+
inputs:
4+
version:
5+
description: "Release version (e.g., v0.8.24)"
6+
required: true
7+
repo_owner:
8+
description: "GitHub repository owner"
9+
required: true
10+
repo_name:
11+
description: "GitHub repository name"
12+
required: true
13+
remote_name:
14+
description: "Binary filename in the release"
15+
required: true
16+
binary_name:
17+
description: "Name to install the binary as"
18+
required: true
19+
expected_sha256:
20+
description: "Expected SHA256 checksum"
21+
required: true
22+
runs:
23+
using: "composite"
24+
steps:
25+
- name: Download binary
26+
shell: bash
27+
run: |
28+
curl -sSL "https://github.com/${{ inputs.repo_owner }}/${{ inputs.repo_name }}/releases/download/${{ inputs.version }}/${{ inputs.remote_name }}" -o ./${{ inputs.binary_name }}
29+
echo "${{ inputs.expected_sha256 }} ${{ inputs.binary_name }}" | sha256sum -c -
30+
sudo mv ./${{ inputs.binary_name }} /usr/local/bin/${{ inputs.binary_name }}
31+
sudo chmod +x /usr/local/bin/${{ inputs.binary_name }}

.github/workflows/fixtures.yaml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,32 @@ jobs:
2929
echo "features=$(cat features.json)" >> "$GITHUB_OUTPUT"
3030
build:
3131
needs: features
32-
runs-on: self-hosted
32+
runs-on: [self-hosted-ghr, size-chungus-x64]
3333
strategy:
3434
matrix:
3535
name: ${{ fromJson(needs.features.outputs.features) }}
3636
steps:
3737
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
3838
with:
3939
submodules: true
40+
- name: Fetch lllc
41+
uses: ./.github/actions/fetch-binary
42+
with:
43+
version: v1.0.0
44+
repo_owner: felix314159
45+
repo_name: lllc-custom
46+
remote_name: lllc
47+
binary_name: lllc
48+
expected_sha256: 865a0d5379acb3b5471337b5dcf686a2dd71587c6b65b9da6c963de627e0b300
49+
- name: Fetch Solidity
50+
uses: ./.github/actions/fetch-binary
51+
with:
52+
version: v0.8.24
53+
repo_owner: ethereum
54+
repo_name: solidity
55+
remote_name: solc-static-linux
56+
binary_name: solc
57+
expected_sha256: fb03a29a517452b9f12bcf459ef37d0a543765bb3bbc911e70a87d6a37c30d5f
4058
- uses: ./.github/actions/build-fixtures
4159
with:
4260
release_name: ${{ matrix.name }}

.github/workflows/fixtures_feature.yaml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
echo names=${names}
2424
echo names=${names} >> "$GITHUB_OUTPUT"
2525
build:
26-
runs-on: self-hosted
26+
runs-on: [self-hosted-ghr, size-chungus-x64]
2727
needs: feature-names
2828
strategy:
2929
matrix:
@@ -32,6 +32,24 @@ jobs:
3232
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
3333
with:
3434
submodules: true
35+
- name: Fetch lllc
36+
uses: ./.github/actions/fetch-binary
37+
with:
38+
version: v1.0.0
39+
repo_owner: felix314159
40+
repo_name: lllc-custom
41+
remote_name: lllc
42+
binary_name: lllc
43+
expected_sha256: 865a0d5379acb3b5471337b5dcf686a2dd71587c6b65b9da6c963de627e0b300
44+
- name: Fetch Solidity
45+
uses: ./.github/actions/fetch-binary
46+
with:
47+
version: v0.8.24
48+
repo_owner: ethereum
49+
repo_name: solidity
50+
remote_name: solc-static-linux
51+
binary_name: solc
52+
expected_sha256: fb03a29a517452b9f12bcf459ef37d0a543765bb3bbc911e70a87d6a37c30d5f
3553
- uses: ./.github/actions/build-fixtures
3654
with:
3755
release_name: ${{ matrix.feature }}

0 commit comments

Comments
 (0)