Skip to content

mmomtchev/setup-swig

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-swig

This actions step downloads and installs a version of SWIG.

Usage

For the latest version on the main branch:

name: "my-project"
on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: mmomtchev/setup-swig@v1

      - name: Verify
        run: swig -version

For SWIG JSE:

name: "my-project"
on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: mmomtchev/setup-swig@v1
        with:
          branch: jse

      - name: Verify
        run: swig -version

Specific version:

name: "my-project"
on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: mmomtchev/setup-swig@v1
        with:
          version: v4.1.0

      - name: Verify
        run: swig -version

Options

  version:
    description: 'Version to install'
    default: 'latest'
  branch:
    description: 'Branch to install'
    default: 'main'
  cache:
    description: 'Cache builds'
    default: true

See action.yml