GitHub Action for installing the C3 compiler in a workflow and adding c3c to PATH.
name: Build
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup C3
uses: jotrorox/setup-c3@v1
- name: Build
run: c3c buildBy default this installs the latest C3 prerelease/nightly build.
| Input | Default | Description |
|---|---|---|
version |
nightly |
C3 release to install. Use nightly, prerelease, latest, stable, or a release tag such as v0.8.0_3. |
| Output | Description |
|---|---|
c3c-path |
Absolute path to the installed compiler executable. |
version |
Installed compiler version string. |
release-tag |
C3 release tag that was installed. |
Install the latest prerelease/nightly build:
- uses: jotrorox/setup-c3@v1Install the latest stable release:
- uses: jotrorox/setup-c3@v1
with:
version: latestInstall a specific release:
- uses: jotrorox/setup-c3@v1
with:
version: v0.8.0_3