Skip to content

Setup Odin

Actions
Setup the Odin compiler
v2.12.1
Latest
Star (24)

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.

release can also be set to nightly, which will download a nightly release published on the Odin website.

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: 18
      # build-type: debug
      # repository: https://github.com/odin-lang/Odin

TODO

  • being able to pull in specific commit hashes

Setup Odin is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Setup the Odin compiler
v2.12.1
Latest

Setup Odin is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.