-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: Add release workflows Signed-off-by: Maksim Dimitrov <[email protected]> * ci: Fix secret Signed-off-by: Maksim Dimitrov <[email protected]> --------- Signed-off-by: Maksim Dimitrov <[email protected]>
- Loading branch information
1 parent
d3f2566
commit e241c3e
Showing
3 changed files
with
126 additions
and
0 deletions.
There are no files selected for viewing
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,42 @@ | ||
name: Release MacOS - Apple Silicon | ||
|
||
on: | ||
release: | ||
types: | ||
- created | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy for MacOS (Apple) | ||
if: startsWith(github.ref, 'refs/tags') | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
name: [macos-12-apple, macos-13-apple] | ||
|
||
include: | ||
- name: macos-12-apple | ||
os: macos-12 | ||
artifact_name: wasm_injector | ||
asset_name: wasm-injector-macos12-apple | ||
- name: macos-13-apple | ||
os: macos-13 | ||
artifact_name: wasm_injector | ||
asset_name: wasm-injector-macos13-apple | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
|
||
- name: Build | ||
run: rustup target add aarch64-apple-darwin && cargo build --release --target aarch64-apple-darwin && mv target/aarch64-apple-darwin/release/${{ matrix.artifact_name }} target/release/${{ matrix.asset_name }} | ||
|
||
- name: Upload binary to release | ||
run: echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token && gh release upload ${GITHUB_REF##*/} target/release/${{ matrix.asset_name }} |
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,42 @@ | ||
name: Release MacOS - Intel | ||
|
||
on: | ||
release: | ||
types: | ||
- created | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy for MacOS (Intel) | ||
if: startsWith(github.ref, 'refs/tags') | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
name: [macos-12, macos-13] | ||
|
||
include: | ||
- name: macos-12 | ||
os: macos-12 | ||
artifact_name: wasm_injector | ||
asset_name: wasm-injector-macos12-intel | ||
- name: macos-13 | ||
os: macos-13 | ||
artifact_name: wasm_injector | ||
asset_name: wasm-injector-macos13-intel | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
|
||
- name: Build | ||
run: cargo build --release && mv target/release/${{ matrix.artifact_name }} target/release/${{ matrix.asset_name }} | ||
|
||
- name: Upload binaries to release | ||
run: echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token && gh release upload ${GITHUB_REF##*/} target/release/${{ matrix.asset_name }} |
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,42 @@ | ||
name: Release Ubuntu | ||
|
||
on: | ||
release: | ||
types: | ||
- created | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy for ${{ matrix.os }} | ||
if: startsWith(github.ref, 'refs/tags') | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
name: [ubuntu-20, ubuntu-22] | ||
|
||
include: | ||
- name: ubuntu-20 | ||
os: ubuntu-20.04 | ||
artifact_name: wasm_injector | ||
asset_name: wasm-injector-ubuntu-20 | ||
- name: ubuntu-22 | ||
os: ubuntu-22.04 | ||
artifact_name: wasm_injector | ||
asset_name: wasm-injector-ubuntu-22 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
|
||
- name: Build | ||
run: cargo build --release && mv target/release/${{ matrix.artifact_name }} target/release/${{ matrix.asset_name }} | ||
|
||
- name: Upload binaries to release | ||
run: echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token && gh release upload ${GITHUB_REF##*/} target/release/${{ matrix.asset_name }} |