-
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (57 loc) · 2.02 KB
/
testrelease.yml
File metadata and controls
64 lines (57 loc) · 2.02 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
64
##############################################
# App information
##############################################
env:
app-name: testbundle
app-entry: tests/testbundle.art
app-notes: auto
##############################################
# > if there is no serious reason, better not
# change anything below this line! ;-)
name: Release
on:
push:
tags:
- 'v*.*.*'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
Bundle:
runs-on: ${{
(matrix.os == 'linux') && (matrix.arch == 'arm64' && 'ubuntu-24.04-arm' || 'ubuntu-latest') ||
(matrix.os == 'macos') && (matrix.arch == 'arm64' && 'macos-latest' || 'macos-15-intel') ||
(matrix.os == 'windows') && 'windows-latest' ||
(matrix.os == 'freebsd') && 'ubuntu-latest' ||
'ubuntu-latest' }}
strategy:
matrix:
include:
- {os: linux, arch: amd64}
- {os: linux, arch: arm64}
- {os: macos, arch: amd64}
- {os: macos, arch: arm64}
- {os: windows, arch: amd64}
- {os: freebsd, arch: amd64}
steps:
- uses: actions/checkout@v4
- uses: arturo-lang/bundler@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
os: ${{ matrix.os }}
arch: ${{ matrix.arch }}
entry: ${{ env.app-entry }}
target: ${{ env.app-name }}
version: ${{ github.ref_name }}
release: 'true'
Publish:
runs-on: ubuntu-latest
if: ${{ always() }}
needs: Bundle
steps:
- uses: actions/checkout@v4
- uses: arturo-lang/bundler-releases@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ env.app-name }}
notes: ${{ env.app-notes }}