From 02c96d21ca3ffc66e7554ae06047d910c06b03c5 Mon Sep 17 00:00:00 2001 From: Henna <62267575+HennaAbbas@users.noreply.github.com> Date: Tue, 5 Nov 2024 10:36:56 -0800 Subject: [PATCH 1/2] Update config.yml --- .circleci/config.yml | 89 +++++++------------------------------------- 1 file changed, 13 insertions(+), 76 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9a516ec..82a1709 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,82 +1,19 @@ version: 2.1 - executors: - my-executor: - docker: - - image: buildpack-deps:jessie - working_directory: /tmp - + xcode-executor: + macos: + xcode: "16.0.0" jobs: - flow: - executor: my-executor + build: + executor: xcode-executor steps: - - run: mkdir -p $CIRCLE_WORKFLOW_JOB_ID - - run: ls -al - - run: pwd - - run: echo "Hello, world!" > $CIRCLE_WORKFLOW_JOB_ID/echo-output - - run: cat /tmp/$CIRCLE_WORKFLOW_JOB_ID/echo-output - - run: ls -al - - run: find $CIRCLE_WORKFLOW_JOB_ID/echo-output - - run: cat $CIRCLE_WORKFLOW_JOB_ID/echo-output - - # Persist the specified paths (workspace/echo-output) into the workspace for use in downstream job. - - persist_to_workspace: - # Must be an absolute path, or relative path from working_directory. This is a directory in the execution - # environment which is taken to be the root directory of the workspace. - root: $CIRCLE_WORKFLOW_JOB_ID - # Must be relative path from root - paths: - - echo-output - test: - executor: my-executor - steps: - - run: mkdir -p $CIRCLE_WORKFLOW_JOB_ID - - run: echo "Hello, world!" > $CIRCLE_WORKFLOW_JOB_ID/echo-output - - # Persist the specified paths (workspace/echo-output) into the workspace for use in downstream job. - - persist_to_workspace: - # Must be an absolute path, or relative path from working_directory. This is a directory in the execution - # environment which is taken to be the root directory of the workspace. - root: $CIRCLE_WORKFLOW_JOB_ID - # Must be relative path from root - paths: - - echo-output - testing: - executor: my-executor - steps: - - run: mkdir -p $CIRCLE_WORKFLOW_JOB_ID - - run: echo "Hello, world!" > $CIRCLE_WORKFLOW_JOB_ID/echo-output - - # Persist the specified paths (workspace/echo-output) into the workspace for use in downstream job. - - persist_to_workspace: - # Must be an absolute path, or relative path from working_directory. This is a directory in the execution - # environment which is taken to be the root directory of the workspace. - root: $CIRCLE_WORKFLOW_JOB_ID - # Must be relative path from root - paths: - - echo-output - - - downstream: - executor: my-executor - steps: - - attach_workspace: - # Must be absolute path or relative path from working_directory - at: /tmp/workspace - - - run: | - if [[ `cat /tmp/workspace/echo-output` == "Hello, world!" ]]; then - echo "It worked!"; - else - echo "Nope!"; exit 1 - fi - + - checkout + - run: + name: Print Environment Variables + command: echo $CIRCLE_PULL_REQUEST + - run: PATH=./sonar-scanner-5.0.1.3006/bin/:$PATH && Echo $CIRCLE_PULL_REQUEST workflows: - btd: + version: 2 + build: jobs: - - flow - - test - - testing - - downstream: - requires: - - flow + - build From 670d3ceafb8472c778533b9ad5dc2f4c8cc731f6 Mon Sep 17 00:00:00 2001 From: Henna <62267575+HennaAbbas@users.noreply.github.com> Date: Tue, 5 Nov 2024 10:43:15 -0800 Subject: [PATCH 2/2] Update config.yml --- .circleci/config.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 82a1709..2faf674 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -11,7 +11,9 @@ jobs: - run: name: Print Environment Variables command: echo $CIRCLE_PULL_REQUEST - - run: PATH=./sonar-scanner-5.0.1.3006/bin/:$PATH && Echo $CIRCLE_PULL_REQUEST + - run: PATH=./sonar-scanner-5.0.1.3006/bin/:$PATH && Echo $CIRCLE_PULL_REQUEST + - run: base=something && echo $base + - run: env base=something && echo $base workflows: version: 2 build: