Skip to content

Commit

Permalink
Add .circleci/config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
michalbiesek committed Nov 12, 2023
1 parent 92a90ff commit 9a82a82
Showing 1 changed file with 17 additions and 46 deletions.
63 changes: 17 additions & 46 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,55 +1,26 @@
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/configuration-reference
version: 2.1

# defaults: &defaults
# machine:
# image: ubuntu-2004:202101-01
# docker_layer_caching: true
# resource_class: arm.medium

# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/configuration-reference/#jobs
jobs:
arm-build:
machine:
image: ubuntu-2004:202101-01
docker_layer_caching: true
resource_class: arm.medium
steps:
- checkout
- run:
name: "Running build"
command: make build
- run:
name: "Print architecture info"
command: uname -a
- persist_to_workspace:
root: .
paths:
- bin/*
- lib/*

arm-test:
machine:
image: ubuntu-2004:202101-01
docker_layer_caching: true
resource_class: arm.medium
say-hello:
# Specify the execution environment. You can specify an image from Docker Hub or use one of our convenience images from CircleCI's Developer Hub.
# See: https://circleci.com/docs/configuration-reference/#executor-job
docker:
- image: cimg/base:stable
# Add steps to the job
# See: https://circleci.com/docs/configuration-reference/#steps
steps:
- checkout
- attach_workspace:
at: ./
- run:
name: "Building tests"
command: make -C test/testContainers all
name: "Say hello"
command: "echo Hello, World!"

# Orchestrate jobs using workflows
# See: https://circleci.com/docs/configuration-reference/#workflows
workflows:
version: 2
arm-workflow:
say-hello-workflow:
jobs:
- arm-build:
filters:
branches:
only: circleci-project-setup
- arm-test:
requires:
- arm-build
filters:
branches:
only: circleci-project-setup
- say-hello

0 comments on commit 9a82a82

Please sign in to comment.