diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 0a4d2f8..5d23146 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -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: @@ -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 diff --git a/Cargo.lock b/Cargo.lock index b3a1903..2cce09f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2013,6 +2013,25 @@ dependencies = [ "tracing-subscriber", ] +[[package]] +name = "soldr-ui" +version = "0.0.0" +dependencies = [ + "anyhow", + "axum", + "bpaf", + "maud", + "reqwest", + "serde", + "serde_json", + "shared_types", + "tokio", + "tower-http", + "tracing", + "tracing-subscriber", + "url", +] + [[package]] name = "spin" version = "0.5.2" @@ -2620,25 +2639,6 @@ version = "1.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" -[[package]] -name = "ui" -version = "0.0.0" -dependencies = [ - "anyhow", - "axum", - "bpaf", - "maud", - "reqwest", - "serde", - "serde_json", - "shared_types", - "tokio", - "tower-http", - "tracing", - "tracing-subscriber", - "url", -] - [[package]] name = "unicase" version = "2.7.0" diff --git a/crates/ui/Cargo.toml b/crates/ui/Cargo.toml index 60686ae..572128b 100644 --- a/crates/ui/Cargo.toml +++ b/crates/ui/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "ui" +name = "soldr-ui" version = "0.0.0" edition = "2021"