Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laytan/setup-odin
https://github.com/laytan/setup-odin
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/laytan/setup-odin
- Owner: laytan
- License: mit
- Created: 2023-08-26T18:27:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-18T04:56:43.000Z (26 days ago)
- Last Synced: 2024-11-26T03:21:51.276Z (18 days ago)
- Language: JavaScript
- Size: 15.3 MB
- Stars: 18
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-odin - [laytan/setup-odin - commit/laytan/setup-odin) (Interviews / Vendor)
- awesome-odin - [laytan/setup-odin - commit/laytan/setup-odin) (Interviews / Vendor)
README
# Setup Odin
A GitHub action to setup the [Odin](https://github.com/odin-lang/Odin) compiler.
## Usage
See [action.yml](https://github.com/laytan/setup-odin/blob/main/action.yml)
### Example
Installs Odin and adds it to the runner's PATH.
When the `release` option is set below (default is set to `latest`), the action will download
a pre-compiled GitHub release instead of building from source.To compile from source, set `release` to false or an empty string.
All options are optional and the defaults are commented below.
NOTE: you MUST set the `token` option to use GitHub releases, copying the setup below will automatically work
because the `GITHUB_TOKEN` secret is automatically set in an action.```yaml
steps:
- uses: laytan/setup-odin@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
# with:
# token: false
# release: latest
# branch: master
# llvm-version: 14
# build-type: debug
# repository: https://github.com/odin-lang/Odin
```### TODO
- being able to pull in "nightly" releases
- being able to pull in specific commit hashes