get.msvc.win/.github/workflows/build.yml
2025-11-16 00:43:27 +08:00

75 lines
2.4 KiB
YAML

name: Automatic Build Script
on:
schedule:
- cron: "0 0 1,15 * *"
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y aria2 nsis
- name: Run generate.sh
run: |
chmod +x ./generate_all.sh
./generate_all.sh
- name: Get build date
id: date
run: echo "date=$(date +'%Y.%m.%d')" >> $GITHUB_OUTPUT
- name: Compute SHA256 checksums
id: checksums
run: |
echo "body<<EOF" >> $GITHUB_OUTPUT
echo "Installer build for ${{ steps.date.outputs.date }}" >> $GITHUB_OUTPUT
echo "" >> $GITHUB_OUTPUT
for f in MSVC_Offline_Setup_*.exe; do
sum=$(sha256sum "$f" | awk '{print $1}')
echo "File: $f" >> $GITHUB_OUTPUT
echo "SHA256: $sum" >> $GITHUB_OUTPUT
echo "" >> $GITHUB_OUTPUT
done
echo "EOF" >> $GITHUB_OUTPUT
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ steps.date.outputs.date }}
name: Release ${{ steps.date.outputs.date }}
body: |
MSVC Offline Installer build automatically generated on ${{ steps.date.outputs.date }}. It does not include DirectX installation.
[You can download DirectX Redistributable from here.](https://download.microsoft.com/download/8/4/a/84a35bf1-dafe-4ae8-82af-ad2ae20b6b14/directx_jun2010_redist.exe)
AllOS variant: Supports at least Windows XP.
Win7 variant: Supports at least Windows 7.
Win10_11 variant: Supports at least Windows 10.
Following Redistributable Runtime will be installed:
Windows XP: 14.28.29213.0 (2015-2019)
Windows Vista: 14.32.31332.0 (2015-2022)
Windows 7, 8, 8.1: 14.44.35211.0 (2015-2022)
Windows 10, 11: Latest Version when this build is released (2015-2026)
File: ${{ steps.checksum.outputs.file }}
SHA256: ${{ steps.checksum.outputs.sha256 }}
files: MSVC_Offline_Setup_*.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}