Skip to content

laytan/setup-odin

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Setup Odin

A GitHub action to setup the Odin compiler.

Usage

See 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.

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