#2 - libssh2-1.11.1 #20
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: build | |
on: [push] | |
jobs: | |
build: | |
name: ${{ matrix.config.name }} | |
runs-on: ${{ matrix.config.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- { | |
name: "Windows Latest MSVC", | |
os: windows-latest, | |
toolchain: vc2022, | |
toolversion: vs170 | |
} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Checkout submodules | |
run: | | |
git submodule update --init --recursive | |
- name: MSVC setup | |
uses: ilammy/msvc-dev-cmd@v1 | |
if: startsWith(matrix.config.name, 'Windows Latest MSVC') | |
with: | |
arch: x86 | |
- name: Generate | |
shell: cmd | |
run: | | |
@set BUSYBOX=./support/busybox | |
@set PERL=c:/Strawberry/perl/bin/perl | |
c:/Strawberry/perl/bin/perl makelib.pl --perlpath=c:/Strawberry/perl/bin --busybox=%BUSYBOX% --verbose "${{ matrix.config.toolchain }}" | |
- name: Compile | |
if: startsWith(matrix.config.name, 'Windows Latest') | |
shell: cmd | |
run: | | |
@set PERL=c:/Strawberry/perl/bin/perl | |
.\support\gmake-42 release build | |
- name: Installer | |
if: startsWith(matrix.config.name, 'Windows Latest MSVC') || startsWith(matrix.config.name, 'Windows Latest OWC') | |
shell: cmd | |
run: | | |
@set PERL=c:/Strawberry/perl/bin/perl | |
choco install innosetup --version=5.6.1 --force | |
@rem .\support\gmake-42 release package | |
"%programfiles(x86)%\Inno Setup 5\ISCC" -DBUILD_INFO=1 -DBUILD_TYPE=release ".\releases\xsh-inno-setup.iss" | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: xsh-package | |
path: ./releases/xsh-build*-setup.exe | |
- name: Release artifacts | |
if: startsWith(matrix.config.name, 'Windows Latest MSVC') || startsWith(matrix.config.name, 'Windows Latest OWC') | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: ./releases/xsh-build*-setup.exe | |
draft: true | |