Skip to content

Commit

Permalink
added new CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-rt committed Jan 9, 2022
1 parent c479deb commit 70df705
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 12 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/CICD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: CICD
on:
push:
pull_request:
create:


env:
CARGO_TERM_COLOR: always
Expand Down Expand Up @@ -38,12 +36,3 @@ jobs:
run: ci/build.sh

# name: Benchmark

- name: Upload binary
if: startsWith(github.ref, 'refs/tags/v')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/${{ matrix.target }}/release/asc
asset_name: asciiframe-${{ matrix.target }}
tag: ${{ github.ref }}
45 changes: 45 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Release

on:
workflow_dispatch:
inputs:
tag:

env:
CARGO_TERM_COLOR: always

jobs:
src:
strategy:
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
- target: x86_64-apple-darwin
os: macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Rust Toolchain
uses: actions-rs/toolchain@v1.0.6
with:
toolchain: nightly
target: ${{ matrix.target }}
default: true

- name: Dependencies
run: ci/deps.sh
shell: bash

- name: Build binary
run: ci/build.sh

- name: Upload binary
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/${{ matrix.target }}/release/asc
asset_name: asciiframe-${{ matrix.target }}
tag: ${{ github.event.inputs.tag }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Output
Optional filename for asciiframe to write rendered output to, which can be run later to display the video

## Installation
Source
### Source

Clone the repository then install it with
```
Expand Down

0 comments on commit 70df705

Please sign in to comment.