-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (57 loc) · 1.68 KB
/
release.yml
File metadata and controls
63 lines (57 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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