forked from nokyan/resources
-
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.
Update and rename rust.yml to restop.yml
- Loading branch information
Showing
2 changed files
with
33 additions
and
28 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,33 @@ | ||
name: restop | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build-linux-musl: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Config | ||
id: config | ||
run: | | ||
echo ::set-output name=SOURCE_TAG::${GITHUB_REF/refs\/tags\//} | ||
echo ::set-output name=TARGET_NAME::x86_64-unknown-linux-musl | ||
- uses: actions/checkout@master | ||
- name: Build | ||
uses: stevenleadbeater/rust-musl-builder@master | ||
with: | ||
args: /bin/bash -c "export DESTINY_API_KEY=${{ secrets.DESTINY_API_KEY }} && rustup toolchain install 1.65.0 && rustup target add x86_64-unknown-linux-musl --toolchain=1.65.0 && rustup override set 1.65.0 && cargo build --manifest-path=src/Cargo.toml --release --target=x86_64-unknown-linux-musl" | ||
- name: Process and Package | ||
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') | ||
env: | ||
SOURCE_TAG: ${{ steps.config.outputs.SOURCE_TAG }} | ||
TARGET_NAME: ${{ steps.config.outputs.TARGET_NAME }} | ||
run: echo SOURCE_TAG ${SOURCE_TAG} && echo TARGET_NAME ${TARGET_NAME} && ls -l src/target/ && cp src/target/${TARGET_NAME}/release/restop . && zip -j restop_${TARGET_NAME}_${SOURCE_TAG}.zip restop | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: | | ||
restop_${{ steps.config.outputs.TARGET_NAME }}_${{ steps.config.outputs.SOURCE_TAG }}.zip | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.