This action downloads builds of Gambit Scheme from CI runs of the official Gambit repository so that they can be used in your GitHub Actions workflows.
Once the Gambit build has been downloaded, it will be added to PATH
so that
gsi
, gsi
, etc can all be invoked without a relative path.
This action accepts the following inputs:
Required The GitHub token to use for GitHub API and artifact download requests. At a minimum the token will will need public:repo
permissions. Unfortunately ${{ secrets.GITHUB_TOKEN }}
does not contain this permission so it cannot be used for artifact downloads.
The target OS of the desired build. Possible values: linux
, macos
, win-msvc
, win-mingw
. Defaults to the operating system on which this action is being executed (win-msvc
for Windows).
The architecture of the desired build. Possible values: x86_64
, i686
. Defaults to x86_64
.
The repository from which builds will be downloaded. Defaults to gambit/gambit
.
The name of the GitHub Actions workflow that produces build artifacts. Defaults to Gambit - CI
.
The branch from which builds will be downloaded. Defaults to master
.
The local path to which the Gambit build will be unpacked. Defaults to ./gambit
.
jobs:
Linux:
runs-on: ubuntu-latest
steps:
- uses: daviwil/download-gambit@v1
with:
# Make sure to create the secret ARTIFACT_TOKEN with a personal
# access token containing `public:repo` permissions.
artifact-token: ${{ secrets.ARTIFACT_TOKEN }}
- name: Run Gambit
run: gsc -v