Skip to content

Commit 3894b74

Browse files
committed
Build tag
1 parent e7ec554 commit 3894b74

File tree

2 files changed

+84
-2
lines changed

2 files changed

+84
-2
lines changed

.github/workflows/build.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Build RISC-V runner
22

3-
on: [workflow_dispatch]
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: 'Runner tag'
8+
required: true
9+
type: string
410

511
jobs:
612
build:
@@ -10,7 +16,8 @@ jobs:
1016
- name: Clone repositories
1117
run: |
1218
rm -rf runner
13-
git clone -b dkurt/riscv64_runner_2.321.0 https://github.com/dkurt/runner --depth 1
19+
git clone -b ${{ inputs.version }} https://github.com/actions/runner --depth 1
20+
git apply patches/runner.patch
1421
1522
- name: Download .NET
1623
run: |

patches/runner.patch

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
2+
index b6d2da4..de94bcc 100644
3+
--- a/.github/workflows/release.yml
4+
+++ b/.github/workflows/release.yml
5+
@@ -163,7 +163,6 @@ jobs:
6+
core.setOutput('note', releaseNote);
7+
8+
- name: Validate Packages HASH
9+
- working-directory: _package
10+
run: |
11+
ls -l
12+
echo "${{needs.build.outputs.win-x64-sha}} actions-runner-win-x64-${{ steps.releaseNote.outputs.version }}.zip" | shasum -a 256 -c
13+
@@ -193,7 +192,7 @@ jobs:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
with:
16+
upload_url: ${{ steps.createRelease.outputs.upload_url }}
17+
- asset_path: ${{ github.workspace }}/_package/actions-runner-win-x64-${{ steps.releaseNote.outputs.version }}.zip
18+
+ asset_path: ${{ github.workspace }}/actions-runner-win-x64-${{ steps.releaseNote.outputs.version }}.zip
19+
asset_name: actions-runner-win-x64-${{ steps.releaseNote.outputs.version }}.zip
20+
asset_content_type: application/octet-stream
21+
22+
@@ -203,7 +202,7 @@ jobs:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
with:
25+
upload_url: ${{ steps.createRelease.outputs.upload_url }}
26+
- asset_path: ${{ github.workspace }}/_package/actions-runner-win-arm64-${{ steps.releaseNote.outputs.version }}.zip
27+
+ asset_path: ${{ github.workspace }}/actions-runner-win-arm64-${{ steps.releaseNote.outputs.version }}.zip
28+
asset_name: actions-runner-win-arm64-${{ steps.releaseNote.outputs.version }}.zip
29+
asset_content_type: application/octet-stream
30+
31+
@@ -213,7 +212,7 @@ jobs:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
with:
34+
upload_url: ${{ steps.createRelease.outputs.upload_url }}
35+
- asset_path: ${{ github.workspace }}/_package/actions-runner-linux-x64-${{ steps.releaseNote.outputs.version }}.tar.gz
36+
+ asset_path: ${{ github.workspace }}/actions-runner-linux-x64-${{ steps.releaseNote.outputs.version }}.tar.gz
37+
asset_name: actions-runner-linux-x64-${{ steps.releaseNote.outputs.version }}.tar.gz
38+
asset_content_type: application/octet-stream
39+
40+
@@ -223,7 +222,7 @@ jobs:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
with:
43+
upload_url: ${{ steps.createRelease.outputs.upload_url }}
44+
- asset_path: ${{ github.workspace }}/_package/actions-runner-osx-x64-${{ steps.releaseNote.outputs.version }}.tar.gz
45+
+ asset_path: ${{ github.workspace }}/actions-runner-osx-x64-${{ steps.releaseNote.outputs.version }}.tar.gz
46+
asset_name: actions-runner-osx-x64-${{ steps.releaseNote.outputs.version }}.tar.gz
47+
asset_content_type: application/octet-stream
48+
49+
@@ -233,7 +232,7 @@ jobs:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
with:
52+
upload_url: ${{ steps.createRelease.outputs.upload_url }}
53+
- asset_path: ${{ github.workspace }}/_package/actions-runner-osx-arm64-${{ steps.releaseNote.outputs.version }}.tar.gz
54+
+ asset_path: ${{ github.workspace }}/actions-runner-osx-arm64-${{ steps.releaseNote.outputs.version }}.tar.gz
55+
asset_name: actions-runner-osx-arm64-${{ steps.releaseNote.outputs.version }}.tar.gz
56+
asset_content_type: application/octet-stream
57+
58+
@@ -243,7 +242,7 @@ jobs:
59+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
with:
61+
upload_url: ${{ steps.createRelease.outputs.upload_url }}
62+
- asset_path: ${{ github.workspace }}/_package/actions-runner-linux-arm-${{ steps.releaseNote.outputs.version }}.tar.gz
63+
+ asset_path: ${{ github.workspace }}/actions-runner-linux-arm-${{ steps.releaseNote.outputs.version }}.tar.gz
64+
asset_name: actions-runner-linux-arm-${{ steps.releaseNote.outputs.version }}.tar.gz
65+
asset_content_type: application/octet-stream
66+
67+
@@ -253,7 +252,7 @@ jobs:
68+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69+
with:
70+
upload_url: ${{ steps.createRelease.outputs.upload_url }}
71+
- asset_path: ${{ github.workspace }}/_package/actions-runner-linux-arm64-${{ steps.releaseNote.outputs.version }}.tar.gz
72+
+ asset_path: ${{ github.workspace }}/actions-runner-linux-arm64-${{ steps.releaseNote.outputs.version }}.tar.gz
73+
asset_name: actions-runner-linux-arm64-${{ steps.releaseNote.outputs.version }}.tar.gz
74+
asset_content_type: application/octet-stream
75+

0 commit comments

Comments
 (0)