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 6329ef3 commit ad9dc48
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:
CARGO_TERM_COLOR: always

jobs:
# based off of https://github.com/houseabsolute/ubi/blob/master/.github/workflows/ci.yml
# based off of https://github.com/houseabsolute/soldr/blob/master/.github/workflows/ci.yml
artifacts:
strategy:
matrix:
Expand All @@ -19,18 +19,22 @@ jobs:
bin: soldr
- target: x86_64-unknown-linux-gnu
bin: soldr
name: ${{ matrix.platform.os_name }} with rust ${{ matrix.toolchain }}
name: ${{ matrix.platform.target }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: extractions/setup-just@v1
- name: Install musl-tools on Linux
run: sudo apt-get update --yes && sudo apt-get install --yes musl-tools
if: contains(matrix.platform.target, 'musl')
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.platform.target }}
- name: Build
- name: Build UI
run: just install build-ui
- name: Build service
shell: bash
run: |
cargo build --locked --release --target ${{ matrix.platform.target }}
Expand All @@ -47,13 +51,13 @@ jobs:
- name: Publish release artifacts
uses: actions/upload-artifact@v3
with:
name: ubi-${{ matrix.platform.os_name }}
path: "ubi*"
name: soldr-${{ matrix.platform.os_name }}
path: "soldr*"
if: startsWith( github.ref, 'refs/tags/v' )
- name: Publish GitHub release
uses: softprops/action-gh-release@v1
with:
draft: true
files: "ubi*"
files: "soldr*"
body_path: Changes.md
if: startsWith( github.ref, 'refs/tags/v' )

0 comments on commit ad9dc48

Please sign in to comment.