From efaba0239e60ecfd4461f177798c86a9f3547155 Mon Sep 17 00:00:00 2001 From: Clubsandwich Date: Fri, 6 Sep 2024 23:33:26 +0900 Subject: [PATCH 1/2] Add .circleci/config.yml --- .circleci/config.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..6229170 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,31 @@ +# Use the latest 2.1 version of CircleCI pipeline process engine. +# See: https://circleci.com/docs/configuration-reference +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 + steps: + # Checkout the code as the first step. + - checkout + - run: + name: "Say hello" + command: "echo Hello, World!" + +# 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 \ No newline at end of file From c680274e35dc07b3e288cd4e9f58e8606e646295 Mon Sep 17 00:00:00 2001 From: Clubsandwich Date: Fri, 6 Sep 2024 23:36:24 +0900 Subject: [PATCH 2/2] Update .circleci/config.yml --- .circleci/config.yml | 29 +++++------------------------ .zshrc | 2 +- setup.sh | 6 +----- test.sh | 6 ++++++ 4 files changed, 13 insertions(+), 30 deletions(-) create mode 100755 test.sh diff --git a/.circleci/config.yml b/.circleci/config.yml index 6229170..a528b86 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,30 +2,11 @@ # See: https://circleci.com/docs/configuration-reference 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: + macos: + xcode: 15.4.0 + resource_class: macos.m1.medium.gen1 steps: - # Checkout the code as the first step. - checkout - - run: - name: "Say hello" - command: "echo Hello, World!" - -# 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 \ No newline at end of file + - run: ./test.sh diff --git a/.zshrc b/.zshrc index 8b13789..8a2de14 100644 --- a/.zshrc +++ b/.zshrc @@ -1 +1 @@ - +eval "$(starship init zsh)" \ No newline at end of file diff --git a/setup.sh b/setup.sh index 8d6e449..287cc42 100755 --- a/setup.sh +++ b/setup.sh @@ -3,17 +3,13 @@ mkdir /usr/local/bin cd ~ -touch ~/.zshrc - # Zinit curl --fail --show-error --silent --location https://raw.githubusercontent.com/zdharma-continuum/zinit/HEAD/scripts/install.sh | sh -source ~/.zshrc zinit self-update # Load starship theme curl -sS https://starship.rs/install.sh | sh -s -- --yes # Skip prompt. (echo 'eval "$(starship init zsh)"') >> ~/.zshrc -source ~/.zshrc # Homebrew curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | sh @@ -49,7 +45,7 @@ brew install golang # GVM (Golang Version Manager) # https://github.com/moovweb/gvm bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer) -source /Users/clsan/.gvm/scripts/gvm +source ~/.gvm/scripts/gvm gvm install go1.21 # NVM (Node Version Manager) diff --git a/test.sh b/test.sh new file mode 100755 index 0000000..467720e --- /dev/null +++ b/test.sh @@ -0,0 +1,6 @@ +pwd +touch ~/.zshrc +curl --fail --show-error --silent --location https://raw.githubusercontent.com/zdharma-continuum/zinit/HEAD/scripts/install.sh | NO_INPUT=true sh +cat ~/.zshrc +source ~/.zshrc +zinit self-update \ No newline at end of file