Skip to content

Commit

Permalink
Update config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sukso96100 authored Jul 24, 2024
1 parent e769dc3 commit 9a71737
Showing 1 changed file with 30 additions and 14 deletions.
44 changes: 30 additions & 14 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,43 @@ 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
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
- build-amd64-snap
- build-arm64-snap

0 comments on commit 9a71737

Please sign in to comment.