Skip to content

Commit

Permalink
ci: update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cilki committed Jun 29, 2024
1 parent dbbe469 commit 4de5a62
Show file tree
Hide file tree
Showing 2 changed files with 161 additions and 323 deletions.
40 changes: 0 additions & 40 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,48 +24,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

linux:
name: linux / ${{ matrix.target }}
runs-on: ubuntu-latest
needs: github
strategy:
fail-fast: false
matrix:
target:
# - aarch64-unknown-linux-gnu
# - aarch64-unknown-linux-musl
# - i686-unknown-linux-gnu
- x86_64-unknown-linux-gnu
# - x86_64-unknown-linux-musl
steps:
- uses: actions/checkout@v4
with:
fetch-tags: true

- uses: actions-rs/cargo@v1
with:
command: build
args: --release --target ${{ matrix.target }}

- uses: actions/upload-artifact@v4
with:
name: outpose-${{ matrix.target }}
path: target/${{ matrix.target }}/release/outpost

- name: Upload artifacts to release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
run: |
for tag in $(git tag --points-at HEAD); do
if cp target/${{ matrix.target }}/release/outpost outpost_${{ matrix.target }}; then
gh release upload "${tag##*-}" "outpost_${{ matrix.target }}"
fi
done
docker:
runs-on: ubuntu-latest
needs: linux
steps:
- uses: actions/checkout@v4
with:
Expand Down
Loading

0 comments on commit 4de5a62

Please sign in to comment.