-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1013 Bytes
/
rcc.yml
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
---
name: "RCC"
on:
push:
paths:
- .github/workflows/rcc.yml
pull_request:
paths:
- .github/workflows/rcc.yml
workflow_call: {}
jobs:
build_rcc_from_source:
runs-on: ubuntu-latest
steps:
- name: "Checkout repository"
uses: actions/checkout@v4
with:
repository: robocorp/rcc
ref: v14.15.4
path: rcc
- name: "Setup Rake"
run: |
sudo apt-get install rubygems
sudo gem install rake
- name: "Setup Go"
run: |
wget https://go.dev/dl/go1.21.0.linux-amd64.tar.gz
# rcc expects $HOME/go/bin to be present (hard-coded)
tar -C $HOME -xzf go1.21.0.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 Artifact"
uses: actions/upload-artifact@v3
with:
name: rcc.exe
path: rcc/build
if-no-files-found: error