Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
keynmol committed Jun 12, 2024
1 parent c2aab29 commit 805ef0b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
if-no-files-found: error

release:
if: startsWith(github.ref, 'refs/tags/v') || (github.ref == 'refs/heads/main')
if: startsWith(github.ref, 'refs/tags/v')
needs: [linux_build, windows_build, macos_build]
name: Upload binaries to release
runs-on: ubuntu-20.04
Expand Down
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Scala Native binary release template

This is a simple template demonstrating building a [Scala Native](https://scala-native.org/) binary and releasing it
on Github release for all natively supported platforms: Windows (amd64), Linux (amd64),
MacOS (arm64), MacOS (amd64).

Binaries are given descriptive platform-specific names, and upon creating a Github release
for a tag starting with `v`, binaries for all platforms are uploaded to release artifacts.

The project itself

- Uses latest Scala 3
- Has a `lib` and `bin` projects, where `bin` depends on `lib`

The expectation is that most of the functionality of the binary is exposed as a library,
that can be published to Maven Central, and binary merely provides a CLI interface to
invoke that functionality.

You are of course free to remove the `lib` entirely.

Naming conventions loosely follow Coursier's practices.

0 comments on commit 805ef0b

Please sign in to comment.