Skip to content

Commit c58c9eb

Browse files
committed
added ubi8 hx build workflow
1 parent dabfb6c commit c58c9eb

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/rhel-build.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: RHEL Build
2+
3+
on:
4+
push:
5+
branches:
6+
- rhel-ubi-build
7+
tags:
8+
- 'ubi*'
9+
workflow_dispatch:
10+
inputs:
11+
commit_hash:
12+
description: 'Commit hash to build'
13+
required: false
14+
default: 'HEAD'
15+
# pull_request:
16+
# branches:
17+
# - rhel-ubi-build
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v2
26+
with:
27+
ref: ${{ github.event.inputs.commit_hash }}
28+
29+
- name: Set up Docker Buildx
30+
uses: docker/setup-buildx-action@v1
31+
32+
- name: Cache rust build deps
33+
uses: Swatinem/rust-cache@v2
34+
35+
- name: Build with RHEL8 UBI image
36+
run: |
37+
docker run --rm -v $(pwd):/workspace -w /workspace registry.access.redhat.com/ubi8/ubi:latest /bin/bash -c "
38+
yum install -y gcc-c++ git rust cargo &&
39+
export HELIX_DEFAULT_RUNTIME=/tmp/helix/runtime &&
40+
export HELIX_DISABLE_AUTO_GRAMMAR_BUILD &&
41+
cargo build --profile opt --locked
42+
"
43+
# cargo build --release --path helix-term --locked
44+
45+
- name: Backup artifact
46+
uses: actions/upload-artifact@v4
47+
with:
48+
name: helix
49+
path: target/opt/hx

0 commit comments

Comments
 (0)