Skip to content

Commit

Permalink
Merge pull request #146 from codestoryai/features/windows-test-7z
Browse files Browse the repository at this point in the history
features/windows test 7z
  • Loading branch information
theskcd authored Oct 18, 2023
2 parents 4ef0a5a + be05c94 commit 30eb861
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/sidecar-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,6 @@ jobs:
run: |
./package_windows.sh
- name: Install Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Build
run: |
cargo build --release
# Install gcp skcd
- name: Setup GCP SDK
uses: 'google-github-actions/setup-gcloud@v0'
Expand All @@ -38,6 +30,26 @@ jobs:
with:
credentials_json: '${{ secrets.GCP_GAE_SA_KEY }}'

- name: Upload to GCP for testing
env:
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}
GCP_BUCKET_NAME: ${{ secrets.GCP_BUCKET_NAME }}
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }}
run: |
# Set your GCP project
gcloud config set project ${{ env.GCP_PROJECT_ID }}
# Copy the built binary to the GCP bucket
gsutil cp sidecar_test.7z "gs://sidecar-bin/windows/sidecar_test.zip"
- name: Install Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Build
run: |
cargo build --release
# Now run the .sh script which does the building and packaging
- name: Build and package
run: |
Expand Down

0 comments on commit 30eb861

Please sign in to comment.