File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments