Skip to content

Rewrite the dashboard for more convenient. #89

Rewrite the dashboard for more convenient.

Rewrite the dashboard for more convenient. #89

Workflow file for this run

name: Build and Release Binaries
on:
push:
branches:
- dev
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Determine tag or commit for release name
id: release_name
run: |
if [[ $GITHUB_REF == refs/tags/* ]]; then
echo "::set-output name=tag::${GITHUB_REF#refs/tags/}"
else
echo "::set-output name=tag::$(git rev-parse --short HEAD)"
fi
shell: bash
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16.20.2'
- name: Build frontend
run: |
printf "Building studio based on openapi...\n"
mkdir -p assets
git submodule update --init --recursive
cd studio && yarn --ignore-engines && yarn openapi || true
yarn build:embed
- name: Build with messense/rust-musl-cross
run: |
docker run --rm -v "${{ github.workspace }}:/home/rust/src" messense/rust-musl-cross:x86_64-musl cargo build --release
find ./target -type f -name "biomedgps*" -exec ls -l {} \;
- name: Build with messense/rust-musl-cross
run: |
docker run --rm -v "${{ github.workspace }}:/home/rust/src" messense/rust-musl-cross:aarch64-musl cargo build --release
find ./target -type f -name "biomedgps*" -exec ls -l {} \;
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.release_name.outputs.tag }}
release_name: Release ${{ steps.release_name.outputs.tag }}
draft: ${{ github.event_name != 'workflow_dispatch' }}
prerelease: false
- name: Upload Release Asset (biomedgps)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./target/x86_64-unknown-linux-musl/release/biomedgps
asset_name: biomedgps-x86_64-unknown-linux-musl
asset_content_type: application/octet-stream
- name: Upload Release Asset (biomedgps-cli)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./target/x86_64-unknown-linux-musl/release/biomedgps-cli
asset_name: biomedgps-cli-x86_64-unknown-linux-musl
asset_content_type: application/octet-stream
- name: Upload Release Asset (biomedgps)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./target/aarch64-unknown-linux-musl/release/biomedgps
asset_name: biomedgps-aarch64-unknown-linux-musl
asset_content_type: application/octet-stream
- name: Upload Release Asset (biomedgps-cli)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./target/aarch64-unknown-linux-musl/release/biomedgps-cli
asset_name: biomedgps-cli-aarch64-unknown-linux-musl
asset_content_type: application/octet-stream