Skip to content

Commit

Permalink
Adding a Release file and macos support.
Browse files Browse the repository at this point in the history
  • Loading branch information
logicalmechanism committed Dec 18, 2024
1 parent d91427a commit 3fff001
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,34 @@ jobs:
seedelf-cli/seedelf-cli-windows.sha256
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build-mac:
runs-on: macos-latest
steps:
- name: Check out the code
uses: actions/checkout@v3

- name: Set up Rust
uses: dtolnay/rust-toolchain@stable

# Build for macOS
- name: Build (macOS)
working-directory: seedelf-cli
run: cargo build --release --target x86_64-apple-darwin

- name: Generate checksum (macOS)
shell: bash
working-directory: seedelf-cli
run: |
shasum -a 256 target/release/seedelf-cli > seedelf-cli-macos.sha256
# Add macOS Assets to Existing Release
- name: Update GitHub Release with macOS Assets
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref_name }}
files: |
seedelf-cli/target/release/seedelf-cli
seedelf-cli/seedelf-cli-macos.sha256
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12 changes: 12 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Release

Update version in `aiken.toml` and `seedelf-cli/Cargo.toml`.

```bash
version="0.2.2"
git add .
git commit -m "chore: tagging new release"
git push origin main
git tag ${version}
git push origin ${version}
```
2 changes: 1 addition & 1 deletion seedelf-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ mod setup;

#[derive(Parser)]
#[command(name = "seedelf-cli")]
#[command(version = "0.2.1")]
#[command(version = env!("CARGO_PKG_VERSION"))]
#[command(about = "A Cardano Stealth Wallet", long_about = None)]
struct Cli {
/// Use this flag to interact with the pre-production environment
Expand Down

0 comments on commit 3fff001

Please sign in to comment.