aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-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 }}