Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
hjr3 committed Jan 27, 2024
1 parent ad9dc48 commit 243706d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 26 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ jobs:
matrix:
platform:
- target: x86_64-unknown-linux-musl
bin: soldr
- target: x86_64-unknown-linux-gnu
bin: soldr
bin:
- name: soldr
- name: soldr-ui
name: ${{ matrix.platform.target }}
runs-on: ubuntu-latest
steps:
Expand All @@ -37,21 +38,21 @@ jobs:
- name: Build service
shell: bash
run: |
cargo build --locked --release --target ${{ matrix.platform.target }}
cargo build --bin ${{ matrix.bin.name }} --locked --release --target ${{ matrix.platform.target }}
- name: Strip binary
shell: bash
run: |
strip target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }}
strip target/${{ matrix.platform.target }}/release/${{ matrix.bin.name }}
- name: Package as archive
shell: bash
run: |
cd target/${{ matrix.platform.target }}/release
tar czvf ../../../${{ matrix.platform.target }}.tar.gz ${{ matrix.platform.bin }}
tar czvf ../../../${{ matrix.bin.name }}-${{ matrix.platform.target }}.tar.gz ${{ matrix.bin.name }}
cd -
- name: Publish release artifacts
uses: actions/upload-artifact@v3
with:
name: soldr-${{ matrix.platform.os_name }}
name: soldr-${{ matrix.bin.name}}-${{ matrix.platform.target }}
path: "soldr*"
if: startsWith( github.ref, 'refs/tags/v' )
- name: Publish GitHub release
Expand Down
38 changes: 19 additions & 19 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/ui/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "ui"
name = "soldr-ui"
version = "0.0.0"
edition = "2021"

Expand Down

0 comments on commit 243706d

Please sign in to comment.