Skip to content

wip: fix checksum

wip: fix checksum #4

Workflow file for this run

name: Windows Build
on: push
jobs:
build:
strategy:
matrix:
os:
- windows-2019
runs-on: ${{ matrix.os }}
steps:
# Checks-out the repository under $GITHUB_WORKSPACE.
- uses: actions/checkout@v4
- name: Change directory
run: cd $GITHUB_WORKSPACE
- name: Download FreePascal Compiler
shell: bash
run: |
curl -L --output fpc-3.2.2.i386-win32.cross.x86_64-win64.exe https://sourceforge.net/projects/freepascal/files/Win32/3.2.2/fpc-3.2.2.i386-win32.cross.x86_64-win64.exe
CHECKSUM=$(sha256sum fpc-3.2.2.i386-win32.cross.x86_64-win64.exe)
echo Checksum: $CHECKSUM
if [[ $CHECKSUM != "9b4ea18d9c0a613fcc815b78612967a62d539e8c42070299c5c3c2ce8f712768 fpc-3.2.2.i386-win32.cross.x86_64-win64.exe" ]]
then
echo "Checksum of downloaded installer is wrong."
exit 1
fi
- name: Install FreePascal Compiler
run: fpc-3.2.2.i386-win32.cross.x86_64-win64.exe /verysilent /norestart
- name: Build
run: |
cd engine
fpc -S2 vespucci.dpr
- name: Collect build artifacts
shell: bash
run: |
cd $GITHUB_WORKSPACE
mkdir artifacts
cp engine/vespucci.exe artifacts/
cp -R engine/data artifacts/data
cp LICENSE artifacts/
cp readme.md artifacts/
cp known_bugs.md artifacts/
- name: Archive build artifacts
uses: actions/upload-artifact@v4
with:
name: windows-build-artifacts
path: |
artifacts/*