ci:check #17
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: COINES Installer - Windows | |
on: | |
push: | |
branches: | |
- '*' | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install LaTeX (PDFLatex) | |
run: | | |
# Install LaTeX using Chocolatey | |
choco install miktex -y | |
# Add MiKTeX to PATH permanently for the session | |
setx PATH "$env:PATH;C:\Program Files\MiKTeX 2.9\miktex\bin\x64" | |
# Reload the environment variable to make pdflatex available | |
$env:PATH = [System.Environment]::GetEnvironmentVariable('PATH', [System.EnvironmentVariableTarget]::User) | |
# Verify LaTeX installation | |
pdflatex --version | |
- name: Install GCC Arm Embedded Tools | |
run: | | |
# Install GCC Arm Embedded tools using Chocolatey | |
choco install gcc-arm-embedded -y | |
# Verify installation | |
arm-none-eabi-gcc --version | |
- name: Download Inno Setup Installer | |
run: | | |
# Download Inno Setup executable from official source | |
$url = "https://files.jrsoftware.org/is/5/innosetup-5.6.0.exe" | |
$output = "InnoSetup.exe" | |
Invoke-WebRequest -Uri $url -OutFile $output | |
- name: Install Inno Setup | |
run: | | |
# Install Inno Setup silently | |
Start-Process -FilePath .\InnoSetup.exe -ArgumentList "/VERYSILENT" -NoNewWindow -Wait | |
# Cleanup the installer file | |
Remove-Item .\InnoSetup.exe -Force | |
- name: Run COINES Installer | |
run: | | |
cd _installer_/Installer_Scripts/Windows | |
# Run the batch script to set up the COINES installer | |
cmd /c "publishCoines.bat" |