Skip to content

Commit

Permalink
Merge pull request #16 from Isawan/build-release-artifact
Browse files Browse the repository at this point in the history
Added steps to build release artifacts
  • Loading branch information
Isawan authored Aug 9, 2023
2 parents 859dcaf + 26e32f0 commit 742eff3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,14 @@ jobs:
AWS_REGION: us-east-1
- name: Stop containers
if: always()
run: docker-compose down
run: docker-compose down

- name: Build final release binary
if: github.ref == 'refs/heads/main'
run: ./scripts/release
- name: Upload artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v3
with:
name: terrashine-binary
path: target/release/terrashine
3 changes: 1 addition & 2 deletions scripts/release
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/bin/sh

cargo build --release

SQLX_OFFLINE=1 cargo build --release --verbose

0 comments on commit 742eff3

Please sign in to comment.