fix: penalty is no more saved from one solve to another #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PlatformIO CI | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cache/pip | |
~/.platformio/.cache | |
key: ${{ runner.os }}-pio-new | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.9' | |
- name: Install PlatformIO Core | |
run: pip install --upgrade platformio | |
- name: Build PlatformIO Project | |
run: bash ./build.sh | |
working-directory: ./proj | |
- name: Read version | |
run: echo "VERSION=$(head -c 8 ./proj/.versum)" >> $GITHUB_ENV | |
- uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "./proj/build/*.bin" | |
generateReleaseNotes: true | |
skipIfReleaseExists: true | |
makeLatest: true | |
tag: ${{ env.VERSION }} | |
token: ${{ secrets.GH_TOKEN }} |