More diagnostics; clear GO cache after build. #136
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: Go | |
on: [ push, pull_request ] | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install cross-build dependencies | |
run: sudo apt-get -qq -y update && sudo apt-get -qq -y --no-install-recommends install make gcc gcc-multilib gcc-mingw-w64 autoconf automake libtool pkgconf ca-certificates wget patch sed git-core moreutils zip golang-go | |
- name: Show info about build environment | |
run: | | |
cat /etc/debian_version | |
go version | |
gcc --version | |
x86_64-w64-mingw32-gcc --version | |
- name: Build 3rd-party deps | |
run: make 3rdparty-all | |
- name: Upload 3rd-party build artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: 3rdparty-linux | |
path: _3rdparty/tgt | |
- name: Run unit tests | |
run: make unit-test | |
- name: Build binaries | |
run: make release VERSIONSUFFIX=+$GITHUB_SHA | |
- name: Upload a Build Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: spyre-zips | |
path: spyre-*.zip | |
build-macosx: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Update build environment | |
run: | | |
brew update | |
- name: Install build-dependencies | |
run: | | |
brew unlink pkg-config | |
brew install \ | |
make autoconf automake libtool pkgconf wget patchutils \ | |
gnu-sed gnu-tar ca-certificates zip go | |
- name: Build 3rd-party deps | |
run: gmake 3rdparty-all | |
- name: Upload 3rd-party build artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: 3rdparty-macosx | |
path: _3rdparty/tgt | |
- name: Run unit tests | |
run: gmake unit-test | |
- name: Build binaries | |
run: gmake release VERSIONSUFFIX=+$GITHUB_SHA | |
- name: Upload a Build Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: spyre-macosx-zips | |
path: spyre-*.zip |