forked from IBM/action-runner-image-pz
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (48 loc) · 1.92 KB
/
Copy pathbuild_release.yml
File metadata and controls
53 lines (48 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Build runner binary (Release)
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-24.04-ppc64le
runner_owner: "ppc64le-hosted"
- os: ubuntu-24.04-s390x
runner_owner: "s390x-hosted"
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v5
# Runs a single command using the runners shell
- name: Cloning repo and Patching runner
run: |
mkdir -p /var/tmp/imagegeneration/
cp patches/runner-sdk8-$(uname -m).patch /var/tmp/imagegeneration/runner-sdk-8.patch
cd /tmp
git clone --tags -q https://github.com/actions/runner.git
cd runner
git checkout $(git tag --sort=-v:refname | grep '^v[0-9]' | head -n1)
git apply --whitespace=nowarn /var/tmp/imagegeneration/runner-sdk-8.patch
sed -i'' -e '/version/s/8......"$/8.0.100"/' src/global.json
- name: Building runner binary
run: |
cd /tmp/runner/src
sudo ./dev.sh layout Release
sudo ./dev.sh package Release
sudo ./dev.sh test
- name: Installing runner
run: |
sudo mkdir -p /opt/runner-cache
sudo tar -xf /tmp/runner/_package/*.tar.gz -C /opt/runner-cache
/opt/runner-cache/config.sh --version