89 lines
2.6 KiB
YAML
89 lines
2.6 KiB
YAML
name: Windows x86_64 Release Build
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-latest
|
|
|
|
defaults:
|
|
run:
|
|
shell: msys2 {0}
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup MSYS2
|
|
uses: msys2/setup-msys2@v2
|
|
with:
|
|
msystem: MINGW64
|
|
update: true
|
|
install: >-
|
|
git
|
|
make
|
|
mingw-w64-x86_64-gcc
|
|
unzip
|
|
zip
|
|
bison
|
|
|
|
- name: Install ftjam
|
|
run: |
|
|
wget -q -O ftjam-win32.zip https://sourceforge.net/projects/freetype/files/ftjam/2.5.2/ftjam-2.5.2-win32.zip/download
|
|
unzip ftjam-win32.zip
|
|
cp jam.exe /usr/bin/jam.exe
|
|
|
|
- name: Build ArgyllCMS
|
|
run: |
|
|
export MINGW=$(cygpath -m /mingw64)
|
|
jam -q -fJambase -j1 -sBUILTIN_TIFF=true -sBUILTIN_JPEG=true -sBUILTIN_PNG=true -sBUILTIN_Z=true -sBUILTIN_SSL=true install
|
|
|
|
- name: Smoke Tests
|
|
env:
|
|
ARGYLL_NOT_INTERACTIVE: "1"
|
|
ARGYLL_EXCLUDE_SERIAL_SCAN: "1"
|
|
run: |
|
|
./bin/dispcal.exe -? || true
|
|
./bin/chartread.exe -? || true
|
|
./bin/colprof.exe -? || true
|
|
./bin/targen.exe -? || true
|
|
|
|
- name: Package Release
|
|
env:
|
|
COMPILER: MINGW64
|
|
run: |
|
|
export MINGW=$(cygpath -m /mingw64)
|
|
./makepackagebin.sh
|
|
TAG="${{ github.ref_name }}"
|
|
SHORT_SHA="$(git rev-parse --short HEAD)"
|
|
echo "SHORT_SHA=${SHORT_SHA}" >> $GITHUB_ENV
|
|
mv Argyll_V*_win64_exe.zip "Argyll_${TAG}_${SHORT_SHA}_win64_exe.zip"
|
|
|
|
- name: Verify Package Contents
|
|
run: |
|
|
ZIP_FILE=$(ls Argyll_*_win64_exe.zip)
|
|
echo "Verifying contents of ${ZIP_FILE}..."
|
|
unzip -l "${ZIP_FILE}" | grep "usb/ArgyllCMS.inf"
|
|
unzip -l "${ZIP_FILE}" | grep "usb/bin/amd64/libusb0.sys"
|
|
unzip -l "${ZIP_FILE}" | grep "doc/ArgyllDoc.html"
|
|
unzip -l "${ZIP_FILE}" | grep "ReadMe.txt"
|
|
|
|
- name: Upload Artifact
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: Argyll_${{ github.ref_name }}_${{ env.SHORT_SHA }}_win64_exe
|
|
path: Argyll_*_win64_exe.zip
|
|
|
|
- name: Upload Release Asset
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
uses: akkuman/gitea-release-action@v1
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
name: Release ${{ github.ref_name }}
|
|
body: "Release ${{ github.ref_name }} built from commit ${{ github.sha }}"
|
|
files: Argyll_*_win64_exe.zip
|