Skip to content
terminal

GitHub Action

Setup sqlc

v4.0.0 Latest version

Setup sqlc

terminal

Setup sqlc

Compile SQL to type-safe Go

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup sqlc

uses: sqlc-dev/[email protected]

Learn more about this action in sqlc-dev/setup-sqlc

Choose a version

setup-sqlc

This action downloads and installs sqlc.

Usage

steps:
# Ensure sqlc is installed
- uses: sqlc-dev/setup-sqlc@v4
  with:
    sqlc-version: '1.25.0'
# Print out the current version
- run: sqlc version