Skip to content

Release

Release #315

Workflow file for this run

name: Release
on:
schedule:
- cron: "0 0 * * *"
permissions:
contents: write
jobs:
build:
strategy:
fail-fast: false
matrix:
arch: [x86_64, aarch64]
platform: [linux-musl, windows-msvc, macos, freebsd, netbsd, openbsd]
include:
- arch: x86
platform: windows-msvc
- arch: wasm32
platform: wasi
runs-on: macos-latest
env:
XWIN_SDK_VERSION: 10.0.22621
VCLTL_VERSION: 5.3.1
VCLTL_TARGET_VERSION: 10.0.19041.0
XCODE_VERSION: 26.3
MACOS_SDK_VERSION: 26.2
TARGET_ARCH: ${{ matrix.arch }}
TARGET_PLATFORM: ${{ matrix.platform }}
TARGET_TRIPLE: ${{ matrix.arch }}-${{ matrix.platform }}
OPTIMIZE_MODE: ReleaseFast
steps:
- name: Check out repository code
uses: actions/checkout@v6
- name: Setup zig
uses: mlugg/setup-zig@v2
- name: Install xwin
if: ${{ matrix.platform == 'windows-msvc' }}
run: |
brew update
brew install xwin
- name: Update gnuplot
run: zig fetch --save=gnuplot git+https://git.code.sf.net/p/gnuplot/gnuplot-main
- name: Build and pack
run: ./.github/workflows/build.sh
- name: Upload artifacts
uses: actions/upload-artifact@v7
with:
name: ${{ env.TARGET_TRIPLE }}
path: gnuplot-${{ env.TARGET_TRIPLE }}.*
if-no-files-found: error
- name: Upload releases
uses: softprops/action-gh-release@v3
with:
name: Nightly Build
tag_name: nightly
files: gnuplot-${{ env.TARGET_TRIPLE }}.*
prerelease: true
fail_on_unmatched_files: true