Skip to content

Commit

Permalink
GitHub action to build and test RCC
Browse files Browse the repository at this point in the history
Also pin rcc submodule to latest release tag (14.6.0).

CMK-14015
  • Loading branch information
jherbel committed Jul 17, 2023
1 parent 61b1f7f commit 35dd8d3
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
43 changes: 43 additions & 0 deletions .github/workflows/rcc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: RCC

on:
push:
paths:
- rcc
pull_request:
paths:
- rcc

jobs:
build_and_test:
runs-on: Ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: true

- name: Setup Rake
run: |
sudo apt-get install rubygems
sudo gem install rake
- name: Setup Go
run: |
wget https://go.dev/dl/go1.20.6.linux-amd64.tar.gz
# rcc expects $HOME/go/bin to be present (hard-coded)
tar -C $HOME -xzf go1.20.6.linux-amd64.tar.gz
echo "PATH=$PATH:$HOME/go/bin" >> $GITHUB_ENV
- name: Build RCC
run: rake -C rcc build

- name: Test RCC
run: rake -C rcc test

- name: Upload RCC binaries
uses: actions/upload-artifact@v3
with:
name: rcc
path: rcc/build
2 changes: 1 addition & 1 deletion rcc

0 comments on commit 35dd8d3

Please sign in to comment.