Skip to content

Set up your GitHub Actions workflow with a specific version of SATySFi

License

Notifications You must be signed in to change notification settings

amutake/setup-satysfi

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

setup-satysfi

ci

Set up your GitHub Actions workflow with a specific version of SATySFi.

Important

This is an Action for SATySFi version 0.1.0 and later. Currently, it is only compatible with the dev-0-1-0-separate-saphe-from-satysfi branch.

Usage

Example workflow for document

name: CI
on: [push]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: amutake/setup-satysfi@v0
      # optional but recommended:
      - uses: actions/cache@v4
        with:
          path: ~/.saphe
          key: ${{ runner.os }}-saphe-${{ hashFiles('./main.saphe.lock.yaml') }}
          restore-keys: |
            ${{ runner.os }}-saphe-
      - run: saphe update main.saty
      - run: saphe solve main.saty
      - run: saphe build main.saty
      # optional:
      - uses: actions/upload-artifact@v4
        with:
          name: pdf
          path: main.pdf

Example workflow for library

name: CI
on: [push]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: amutake/setup-satysfi@v0
      # optional but recommended:
      - uses: actions/cache@v4
        with:
          path: ~/.saphe
          key: ${{ runner.os }}-saphe-${{ hashFiles('./saphe.lock.yaml') }}
          restore-keys: |
            ${{ runner.os }}-saphe-
      - run: saphe update .
      - run: saphe solve .
      - run: saphe build .
      - run: saphe test .

About

Set up your GitHub Actions workflow with a specific version of SATySFi

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published