Skip to content

Merge pull request #1119 from threefoldtech/development_multiple_stac… #4046

Merge pull request #1119 from threefoldtech/development_multiple_stac…

Merge pull request #1119 from threefoldtech/development_multiple_stac… #4046

Workflow file for this run

name: Build source code
on:
workflow_dispatch:
push:
pull_request:
types: [opened, reopened, review_requested]
schedule:
- cron: "25 5 * * *"
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ matrix.dir }}
strategy:
fail-fast: false
matrix:
dir:
- activation-service
- farmerbot
- grid-cli
- grid-proxy
# - grid-client
- gridify
- monitoring-bot
# - rmb-sdk-go
- user-contracts-mon
- tfrobot
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Build
run: make build
- name: Test version
if: ${{ matrix.dir != 'grid-cli' }}
run: |
if [ ${{ matrix.dir }} == 'grid-proxy' ]; then
cmds/proxy_server/server -v
elif [ ${{ matrix.dir }} == 'grid-cli' ]; then
bin/tfcmd version
else
bin/${{ matrix.dir }} version
fi
build-docker:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
dir:
- activation-service
- farmerbot
- grid-cli
- grid-proxy
# - grid-client
- gridify
- monitoring-bot
# - rmb-sdk-go
- user-contracts-mon
- tfrobot
steps:
- name: Checkout the repo
uses: actions/checkout@v4
- name: Build Docker image
uses: docker/build-push-action@v6
with:
context: .
file: ./${{ matrix.dir }}/Dockerfile