Skip to content

Commit 23c3625

Browse files
Ro6afFalehander92
authored andcommitted
ci(test): upload appimage to r2 bucket
1 parent 6d86f01 commit 23c3625

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/codetracer.yml

+11
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,17 @@ jobs:
175175
- name: Build
176176
run: "nix develop .#devShells.x86_64-linux.default --command ./ci/build/appimage.sh"
177177

178+
- name: Upload artifact
179+
# if: startsWith(github.ref, 'refs/tags/')
180+
env:
181+
AWS_ACCESS_KEY_ID: ${{ secrets.R2_CODETRACER_BUCKET_ACCESS_KEY_ID }}
182+
AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_CODETRACER_BUCKET_ACCESS_KEY }}
183+
# run: |
184+
# nix develop .#devShells.x86_64-linux.default --command aws --endpoint-url=${{ secrets.R2_CODETRACER_BUCKET_S3_ENDPOINT }} s3 cp CodeTracer.AppImage s3://${{ secrets.R2_CODETRACER_BUCKET_NAME }}/CodeTracer-${{ github.ref_name }}-amd64.AppImage
185+
run: |
186+
nix develop .#devShells.x86_64-linux.default --command aws --endpoint-url=${{ secrets.R2_CODETRACER_BUCKET_S3_ENDPOINT }} s3 cp CodeTracer.AppImage s3://${{ secrets.R2_CODETRACER_BUCKET_NAME }}/CodeTracer-test-amd64.AppImage
187+
188+
178189
179190
test-rust:
180191
runs-on: [self-hosted, nixos]

nix/shells/main.nix

+1
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ in
121121
# ci deps
122122
python3Packages.flake8
123123
shellcheck
124+
awscli2
124125

125126
# This dependency is needed only while compiling the `lzma-native`
126127
# node.js module, and only when building an AppImage on Linux/ARM.

0 commit comments

Comments
 (0)