fix: grouper script (#27) #19
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
name: build | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
tags: | |
- "v*" | |
env: | |
ARTIFACT_NAME: rusty-grader-${{ github.ref_name }}.tar.gz | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: x86_64-unknown-linux-gnu | |
- run: cargo build --release --target x86_64-unknown-linux-gnu && cp target/x86_64-unknown-linux-gnu/release/interface rusty-grader | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: rusty-grader | |
path: rusty-grader | |
- name: Prepare tarball for release | |
if: startsWith(github.ref, 'refs/tags/') | |
run: tar zcvf $ARTIFACT_NAME rusty-grader | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: ${{ env.ARTIFACT_NAME }} |