Skip to content

Commit

Permalink
ci: remove windows build and choco (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhart1o1 authored Feb 2, 2024
1 parent 155b125 commit bbc73ec
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 121 deletions.
47 changes: 0 additions & 47 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ groups:
- check-code
- release
- publish-to-crates
- publish-to-choco
- set-dev-version

jobs:
Expand Down Expand Up @@ -66,30 +65,6 @@ jobs:
run:
path: pipeline-tasks/ci/tasks/update-repo.sh
- in_parallel:
- task: build-windows-release
privileged: true
config:
platform: linux
image_resource:
type: registry-image
source:
username: #@ data.values.docker_registry_user
password: #@ data.values.docker_registry_password
repository: #@ data.values.docker_registry + "/wincross-rust"
inputs:
- name: version
- name: pipeline-tasks
- name: repo
outputs:
- name: x86_64-pc-windows-gnu
caches:
- path: cargo-home
- path: cargo-target-dir
params:
TARGET: x86_64-pc-windows-gnu
OUT: x86_64-pc-windows-gnu
run:
path: pipeline-tasks/ci/tasks/build-release.sh
- task: build-osx-release
privileged: true
config:
Expand Down Expand Up @@ -140,7 +115,6 @@ jobs:
image_resource: #@ release_task_image_config()
platform: linux
inputs:
- name: x86_64-pc-windows-gnu
- name: x86_64-apple-darwin
- name: x86_64-unknown-linux-musl
- name: version
Expand Down Expand Up @@ -187,27 +161,6 @@ jobs:
run:
path: pipeline-tasks/ci/tasks/publish-to-crates.sh

- name: publish-to-choco
plan:
- in_parallel:
- { get: repo, passed: [release], trigger: true }
- get: pipeline-tasks
- get: version
- task: publish-to-choco
config:
image_resource:
type: registry-image
source: { repository: chocolatey/choco, tag: latest }
platform: linux
inputs:
- name: version
- name: pipeline-tasks
- name: repo
params:
CHOCO_API_TOKEN: #@ data.values.choco_api_token
run:
path: pipeline-tasks/ci/tasks/publish-to-choco.sh

- name: set-dev-version
plan:
- in_parallel:
Expand Down
6 changes: 1 addition & 5 deletions ci/tasks/build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@ OUT_DIR="${BINARY}-${TARGET}-${VERSION}"
rm -rf "${OUT_DIR}" || true
mkdir "${OUT_DIR}"

if [[ $TARGET == "x86_64-pc-windows-gnu" ]]; then
mv ./${BINARY}.exe ${OUT_DIR}
else
mv ./${BINARY} ${OUT_DIR}
fi
mv ./${BINARY} ${OUT_DIR}

tar -czvf ${OUT_DIR}.tar.gz ${OUT_DIR}

Expand Down
1 change: 0 additions & 1 deletion ci/tasks/prep-github-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ set -eu

mkdir artifacts/binaries

mv x86_64-pc-windows-gnu/* artifacts/binaries
mv x86_64-apple-darwin/* artifacts/binaries
mv x86_64-unknown-linux-musl/* artifacts/binaries

Expand Down
15 changes: 0 additions & 15 deletions ci/tasks/publish-to-choco.sh

This file was deleted.

1 change: 0 additions & 1 deletion ci/values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ gh_org: GaloyMoney
gh_repository: galoy-cli

crates_api_token: ((crates.token))
choco_api_token: ((chocolatey.token))

This comment has been minimized.

Copy link
@siddhart1o1

siddhart1o1 Feb 2, 2024

Author Member

choco token


slack_channel: galoy-cli-github
slack_username: concourse
Expand Down
19 changes: 0 additions & 19 deletions dist/choco/galoy-cli.nuspec

This file was deleted.

29 changes: 0 additions & 29 deletions dist/choco/tools/chocolateyinstall.ps1

This file was deleted.

4 changes: 0 additions & 4 deletions dist/choco/tools/chocolateyuninstall.ps1

This file was deleted.

0 comments on commit bbc73ec

Please sign in to comment.