-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tao Lu
committed
Jan 25, 2023
1 parent
520ed21
commit 185c38e
Showing
3 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
.github/workflows/release.yaml → .github/workflows/release-py.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
name: Create python release | ||
name: Create Python release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
- 'v0.0.*' | ||
|
||
jobs: | ||
build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Create Rust release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v0.1.*' | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
include: | ||
- target: x86_64-unknown-linux-musl | ||
asset: ozy-Linux-x86_64 | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
target: ${{ matrix.target }} | ||
- if: ${{ contains(matrix.target, '-musl') }} | ||
run: sudo apt-get install musl-tools | ||
- name: Build | ||
run: cargo build --release --verbose --target=${{ matrix.target }} --manifest-path rozy/Cargo.toml | ||
- name: Rename | ||
run: mv rozy/target/${{ matrix.target }}/release/ozy rozy/target/${{ matrix.target }}/release/${{ matrix.asset }} | ||
- name: Upload binaries to release | ||
uses: marvinpinto/action-automatic-releases@latest | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
prerelease: true | ||
files: rozy/target/${{ matrix.target }}/release/${{ matrix.asset }} |