mirror of
https://github.com/simh/simh.git
synced 2026-01-13 23:35:57 +00:00
80 lines
3.1 KiB
YAML
80 lines
3.1 KiB
YAML
name: Build
|
|
|
|
on: [pull_request, push]
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
jobs:
|
|
make-unix:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [macos-12, ubuntu-20.04]
|
|
simulators:
|
|
# These are supposed to match ALL in makefile.
|
|
# Each job builds ~15 simulators.
|
|
- 3b2 alpha altair altairz80 b5500 besm6 cdc1700 eclipse gri h316 hp2100 hp3000
|
|
- i1401 i1620 i650 i701 i7010 i704 i7070 i7080 i7090 i7094 ibm1130 id16 id32
|
|
- imlac infoserver100 infoserver1000 infoserver150vxt intel-mds lgp microvax1 microvax2 microvax2000 microvax3100 microvax3100e
|
|
- microvax3100m80 microvax3900 nova pdp1 pdp10 pdp10-ka pdp10-ki pdp10-kl pdp10-ks pdp11 pdp15 pdp4 pdp6 pdp7
|
|
- pdp8 pdp9 pdq3 rtvax1000 s3 sage scelbi sds sel32 sigma ssem swtp6800mp-a swtp6800mp-a2 tt2500 tx-0
|
|
- uc15 vax vax730 vax750 vax780 vax8200 vax8600 vaxstation3100m30 vaxstation3100m38 vaxstation3100m76 vaxstation4000m60 vaxstation4000vlc
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Install dependencies
|
|
if: ${{runner.os == 'macOS'}}
|
|
run: sh -ex .travis/deps.sh osx
|
|
- name: Install dependencies
|
|
if: ${{runner.os == 'Linux'}}
|
|
run: sh -ex .travis/deps.sh linux
|
|
- name: Build
|
|
env:
|
|
SIM: ${{matrix.simulators}}
|
|
run: make LTO=1 OPTIMIZE=-O3 $SIM
|
|
|
|
make-vs2022xp:
|
|
name: VS 2022 XP-compatible
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
matrix:
|
|
os: [windows-latest]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Install v141_xp (XP toolkit)
|
|
shell: pwsh
|
|
run: |
|
|
$packageParams = @( "--productId", "Microsoft.VisualStudio.Product.Enterprise",
|
|
"--channelId", "VisualStudio.17.Release",
|
|
"--add", "Microsoft.VisualStudio.Component.VC.v141.x86.x64",
|
|
"--add", "Microsoft.VisualStudio.Component.WinXP",
|
|
"--no-includeRecommended",
|
|
"--includeOptional",
|
|
"--quiet",
|
|
"--locale en-US" ) -join " "
|
|
choco install visualstudio2022-workload-nativedesktop --package-parameters $packageParams
|
|
|
|
- name: vs2022-xp build
|
|
shell: cmd
|
|
run: build_vstudio.bat
|
|
|
|
- name: Generate and save Zip XP Runnable binaries
|
|
shell: pwsh
|
|
run: |
|
|
$id_line = Select-String -Path "$pwd\Visual Studio Projects\.git-commit-id.h" -Pattern 'SIM_GIT_COMMIT_ID'
|
|
$id_name_pos = $id_line.line.IndexOf("SIM_GIT_COMMIT_ID")
|
|
$id = $id_line.Line.SubString($id_name_pos + 18, 8)
|
|
$datetime = Get-Date -Format "yyyy-mm-dd_hh-mm-ss"
|
|
$zipfile = "simh-4.0-Current--$datetime-$id.zip"
|
|
$zippath = "$pwd\NT\$zipfile"
|
|
Compress-Archive -Path "$pwd\NT\Win32-Release\*.exe" -DestinationPath "$zippath"
|
|
echo "ZIPPATH=$zippath" | Out-File -Append -Encoding ASCII -FilePath $Env:GITHUB_ENV
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: Save Artifact ${{ env.ZIPPATH }}
|
|
path: ${{ env.ZIPPATH }}
|