Skip to content

DEBUG

DEBUG #493

Workflow file for this run

name: CI
on: [push, pull_request]
env:
GOTOOLCHAIN: local
jobs:
build-windows:
name: Build on Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git fetch origin "+${GITHUB_REF}:${GITHUB_REF}"
if: ${{ github.ref_type == 'tag' }}
shell: bash
- uses: ruby/setup-ruby@v1
- run: gem install asciidoctor
- run: Rename-Item -Path C:\msys64 -NewName msys64-tmp -Force
# We move the MSYS2 installed for Ruby aside to prevent use of its Git,
# which does not honour the PATH we set to our built git-lfs binary.
- uses: actions/setup-go@v4
with:
go-version: '1.21.x'
- run: mkdir -p "$HOME/go/bin"
shell: bash
- run: set GOPATH=%HOME%\go
- run: choco install -y InnoSetup
- run: choco install -y strawberryperl
- run: make man
shell: bash
- run: GOPATH="$HOME/go" PATH="$HOME/go/bin:$PATH" go install github.com/josephspurrier/goversioninfo/cmd/goversioninfo@latest
shell: bash
- run: GOPATH="$HOME/go" PATH="$HOME/go/bin:$PATH" env -u TMPDIR script/cibuild
shell: bash
# We clear the TMPDIR set for Ruby so mktemp and Go use the same
# volume for temporary files.
- run: rm -f commands/mancontent_gen.go
shell: bash
- run: GOPATH="$HOME/go" PATH="$HOME/go/bin:$PATH" make GOARCH=386 -B
shell: bash
env:
FORCE_LOCALIZE: true
- run: mv bin\git-lfs.exe git-lfs-x86.exe
- run: rm -f commands/mancontent_gen.go
shell: bash
- run: GOPATH="$HOME/go" PATH="$HOME/go/bin:$PATH" make GOARCH=amd64 -B
shell: bash
env:
FORCE_LOCALIZE: true
- run: mv bin\git-lfs.exe git-lfs-x64.exe
- run: rm -f commands/mancontent_gen.go
shell: bash
- run: GOPATH="$HOME/go" PATH="$HOME/go/bin:$PATH" make GOARCH=arm64 -B
shell: bash
env:
FORCE_LOCALIZE: true
- run: mv bin\git-lfs.exe git-lfs-arm64.exe
- run: iscc script\windows-installer\inno-setup-git-lfs-installer.iss
- run: mkdir -p bin/assets
shell: bash
- run: mv *.exe bin/assets
shell: bash
- uses: actions/upload-artifact@v3
with:
name: windows-latest
path: bin/assets