summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorEllie Huxtable <e@elm.sh>2021-04-26 14:25:57 +0100
committerGitHub <noreply@github.com>2021-04-26 13:25:57 +0000
commit0610ae197f41c0439665c97d914809bd0b10c2fa (patch)
tree9b2f2f31cb4befbdad26f7801c3fc1ea8c3b6a7f /.github
parent646fec893ed611fe9bc1f27fbf18ce292364b3ba (diff)
Pre release polishing (#42)
* Improve readme * Add demo gif * Update readme * Add mac build * Amend release config * Update gif
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/rust.yml40
1 files changed, 38 insertions, 2 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index 54bbbb4f..d547606b 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -23,8 +23,17 @@ jobs:
override: true
- name: Run cargo build
- run: cargo build
-
+ run: cargo build --all --release && strip target/release/atuin && mv target/release/atuin target/release/atuin_linux
+
+ - name: Release
+ uses: softprops/action-gh-release@v1
+ if: startsWith(github.ref, 'refs/tags/')
+ with:
+ files: |
+ target/release/atuin_linux
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
test:
runs-on: ubuntu-latest
@@ -71,3 +80,30 @@ jobs:
- name: Format
run: cargo fmt -- --check
+
+ build-mac:
+ runs-on: macos-latest
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+
+ - name: Install latest rust toolchain
+ uses: actions-rs/toolchain@v1
+ with:
+ toolchain: stable
+ target: x86_64-apple-darwin
+ default: true
+ override: true
+
+ - name: Build for mac
+ run: cargo build --all --release && strip target/release/atuin && mv target/release/atuin target/release/atuin_darwin
+
+ - name: Release
+ uses: softprops/action-gh-release@v1
+ if: startsWith(github.ref, 'refs/tags/')
+ with:
+ files: |
+ target/release/atuin_darwin
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}