-
Notifications
You must be signed in to change notification settings - Fork 9
50 lines (43 loc) · 1.37 KB
/
pre-release.yml
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
name: "pre-release"
# run on any changes, will copy data to pre-releases
on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]
jobs:
pre-release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
#os: [ubuntu-latest, macos-latest, windows-latest]
#os: [macos-latest, windows-latest]
os: [macos-15, windows-latest]
steps:
- name: Update CMake
uses: lukka/get-cmake@latest
- name: Check out code
uses: actions/checkout@v4
- name: Build and install to bin/
run: ./scripts/cibuild.sh ${{ matrix.os }}
shell: bash
# this doesn't work with a matrix, only macos is uploaded, no way to specify same tag
# - name: Upload build to releases
# uses: "marvinpinto/action-automatic-releases@latest"
# with:
# repo_token: "${{ secrets.GITHUB_TOKEN }}"
# automatic_release_tag: "latest"
# prerelease: true
# draft: false
# title: "prerelease"
# files: bin/*.zip
# so do another upload to get both
- name: Upload all builds to releases
uses: svenstaro/upload-release-action@v2
with:
prerelease: true
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: bin/*.zip
file_glob: true
tag: ${{ github.ref }}
overwrite: true