Skip to content

Autorelease

Autorelease #26

Workflow file for this run

name: Build Windows binaries
on:
- push
permissions:
contents: write
jobs:
windows:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
with:
update: true
msystem: MINGW64
install: >-
base-devel
mingw-w64-x86_64-toolchain
mingw-w64-x86_64-diffutils
git
zip
make
texinfo
- uses: actions/checkout@v3
with:
path: src
- run: echo "RELEASE_DATE=$(date --rfc-3339=date)" >> $GITHUB_ENV
- run: mkdir build
- run: ../src/.github/do_configure
working-directory: build
- run: make all-gdb -j5
working-directory: build
- run: make install-strip-gdb
working-directory: build
- run: src/.github/install_dlls
- run: cp src/.github/README.md install/
- uses: actions/upload-artifact@v3
with:
name: gdb-win64
path: install/**/*.*
if-no-files-found: error
- run: zip -r ../gdb.zip *
working-directory: install
- uses: ncipollo/release-action@v1
if: startsWith(github.ref, 'refs/heads/windows-build')
with:
name: ${{ env.RELEASE_DATE }}
tag: release-${{ env.RELEASE_DATE }}
commit: ${{ github.sha }}
allowUpdates: True
omitBody: True
omitBodyDuringUpdate: True
omitNameDuringUpdate: True
artifacts: "gdb.zip"
token: ${{ secrets.GITHUB_TOKEN }}