diff --git a/.circleci/config.yml b/.circleci/config.yml index 6229170..0e093c2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,22 +5,37 @@ version: 2.1 # Define a job to be invoked later in a workflow. # See: https://circleci.com/docs/jobs-steps/#jobs-overview & https://circleci.com/docs/configuration-reference/#jobs jobs: - 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/executor-intro/ & https://circleci.com/docs/configuration-reference/#executor-job - docker: - # Specify the version you desire here - # See: https://circleci.com/developer/images/image/cimg/base - - image: cimg/base:current - - # Add steps to the job - # See: https://circleci.com/docs/jobs-steps/#steps-overview & https://circleci.com/docs/configuration-reference/#steps + build-amd64-snap: + machine: + image: ubuntu-2204:current + steps: + - checkout + - run: apt install -y snapd + - run: snap install --classic snapcraft + - run: snapcraft --destructive-mode + - run: + name: Upload snap package + command: | + mkdir /tmp/artifacts + cp *.snap /tmp/artifacts + - store_artifacts: + path: /tmp/artifacts + build-arm64-snap: + machine: + image: ubuntu-2204:current + resource_class: arm.medium steps: - # Checkout the code as the first step. - checkout + - run: apt install -y snapd + - run: snap install --classic snapcraft + - run: snapcraft --destructive-mode - run: - name: "Say hello" - command: "echo Hello, World!" + name: Upload snap package + command: | + mkdir /tmp/artifacts + cp *.snap /tmp/artifacts + - store_artifacts: + path: /tmp/artifacts # Orchestrate jobs using workflows # See: https://circleci.com/docs/workflows/ & https://circleci.com/docs/configuration-reference/#workflows @@ -28,4 +43,5 @@ workflows: say-hello-workflow: # This is the name of the workflow, feel free to change it to better match your workflow. # Inside the workflow, you define the jobs you want to run. jobs: - - say-hello \ No newline at end of file + - build-amd64-snap + - build-arm64-snap