Skip to content

Commit

Permalink
Mirror workflow from robocorp/rcc
Browse files Browse the repository at this point in the history
Better to stay close to their implementation.
  • Loading branch information
SoloJacobs committed Nov 6, 2023
1 parent 4e84254 commit 38ee179
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions .github/workflows/rcc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,28 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
- name: "Checkout repository"
uses: actions/checkout@v4
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.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
- name: "Setup Go"
uses: actions/setup-go@v3
with:
go-version: '1.20.x'

- name: "Setup Rake"
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'

- name: "Build RCC"
run: rake -C rcc build
- name: Test RCC

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

- name: Upload RCC binaries
- name: "Upload RCC binaries"
uses: actions/upload-artifact@v3
with:
name: rcc
Expand Down

0 comments on commit 38ee179

Please sign in to comment.