https://github.com/mmomtchev/setup-swig
GitHub action to download and setup SWIG
https://github.com/mmomtchev/setup-swig
Last synced: 18 days ago
JSON representation
GitHub action to download and setup SWIG
- Host: GitHub
- URL: https://github.com/mmomtchev/setup-swig
- Owner: mmomtchev
- License: isc
- Created: 2024-01-19T15:13:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-09-15T14:20:09.000Z (22 days ago)
- Last Synced: 2025-09-15T16:22:54.403Z (22 days ago)
- Language: TypeScript
- Size: 1.43 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# setup-swig
This actions step downloads and installs a version of SWIG.
At the moment it supports only Linux runners.
You can check the [`magickwand.js` workflows](https://github.com/mmomtchev/magickwand.js/tree/main/.github/workflows) for an example of a complex project that uses it.
## Usage
For the latest version on the main branch:
```yaml
name: "my-project"
on: [push]jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: mmomtchev/setup-swig@v4- name: Verify
run: swig -version
```For SWIG JSE:
```yaml
name: "my-project"
on: [push]jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: mmomtchev/setup-swig@v4
with:
branch: jse- name: Verify
run: swig -version
```Specific version with authentication - use authentication if you get API rate errors:
```yaml
name: "my-project"
on: [push]jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: mmomtchev/setup-swig@v4
with:
version: v4.1.0
token: ${{ secrets.GITHUB_TOKEN }}- name: Verify
run: swig -version
```## Options
```yaml
version:
description: 'Version to install'
default: 'latest'
branch:
description: 'Branch to install'
default: 'main'
cache:
description: 'Cache builds'
default: true
token:
description: 'Optional authentication token'
default: ''
```See [action.yml](action.yml)