Skip to content

Build SETS Cache

Build SETS Cache #6

name: Build SETS Cache
on: workflow_dispatch
jobs:
build_cache:
name: Build Cache
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v5
with:
repository: STOCD/SETS
- uses: actions/setup-python@v6
with:
python-version: '3.13'
- run: sudo apt install freeglut3-dev
- run: python3 -m pip install -e .
- uses: actions/checkout@v5
with:
path: '.config'
- run: |
python3 -c "import os; file = open('.config/.env', 'w'); file.write(f'''SETS_CF_CLEARANCE={os.environ['SETS_CF_CLEARANCE']}\nSETS_USER_AGENT={os.environ['SETS_USER_AGENT']}\n'''); file.close()"
env:
SETS_CF_CLEARANCE: ${{ secrets.SETS_CF_CLEARANCE }}
SETS_USER_AGENT: ${{ secrets.SETS_USER_AGENT }}
- run: mkdir -p .config/images
- run: mkdir -p .config/ship_images
- run: python3 main.py --build-cache
- uses: peter-evans/create-pull-request@v8
with:
path: '.config'