Skip to content

Commit

Permalink
Add additional releases for Windows and MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
thled committed Dec 16, 2020
1 parent f58acec commit d38249c
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 6 deletions.
41 changes: 39 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,44 @@ jobs:
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files:
app/target/release/namespacer_amd64
files: app/target/release/namespacer_amd64
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build-win:
name: Build binary for Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
override: true
- run: cargo build --all --release
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: app/target/release/namespacer.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build-mac:
name: Build binary for MacOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: x86_64-apple-darwin
default: true
override: true
- run: cargo build --all --release && strip target/release/namespacer && mv target/release/namespacer target/release/namespacer_darwin
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: app/target/release/namespacer_darwin
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

15 changes: 11 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.1.3] - 2020-12-16

### Added

- Releases for additional platforms (Windows, MacOS).

## [0.1.2] - 2020-12-16

### Fix
### Fixed

- Release step in pipeline.

Expand All @@ -34,8 +40,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Initial release.

[unreleased]: https://github.com/thled/namespacer/compare/v0.1.2...HEAD
[0.1.2]: https://github.com/thled/namespacer/releases/tag/v0.1.2
[0.1.1]: https://github.com/thled/namespacer/releases/tag/v0.1.1
[unreleased]: https://github.com/thled/namespacer/compare/v0.1.3...HEAD
[0.1.3]: https://github.com/thled/namespacer/compare/v0.1.2...v0.1.3
[0.1.2]: https://github.com/thled/namespacer/compare/v0.1.1...v0.1.2
[0.1.1]: https://github.com/thled/namespacer/compare/v0.1.0...v0.1.1
[0.1.0]: https://github.com/thled/namespacer/releases/tag/v0.1.0

0 comments on commit d38249c

Please sign in to comment.