Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: remove windows build and choco #232

Merged
merged 1 commit into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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))

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.

Loading