Skip to content

refactor: the last commit of actions? #12

refactor: the last commit of actions?

refactor: the last commit of actions? #12

Workflow file for this run

on:
push:
tags:
- "*"
name: build
jobs:
build:
name: Ubuntu build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Run cargo build
uses: actions-rs/cargo@v1
with:
command: build
args: --release
- name: Archive Release
uses: thedoctor0/[email protected]
with:
type: "zip"
filename: "ubuntu.zip"
directory: "target/release"
path: "rt"
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/ubuntu.zip
tag: ${{ github.ref }}
build-win:
name: Windows build
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Install stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Run cargo build
uses: actions-rs/cargo@v1
with:
command: build
args: --release
- name: Archive Release
uses: thedoctor0/[email protected]
with:
type: "zip"
filename: "windows.zip"
directory: "target/release"
path: "rt.exe"
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/windows.zip
tag: ${{ github.ref }}
build-macos:
name: MacOs build
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Run cargo build
uses: actions-rs/cargo@v1
with:
command: build
args: --release
- name: Archive Release
uses: thedoctor0/[email protected]
with:
type: "zip"
filename: "macos.zip"
directory: "target/release"
path: "rt"
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/macos.zip
tag: ${{ github.ref }}