-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·69 lines (60 loc) · 1.53 KB
/
ci.yml
File metadata and controls
executable file
·69 lines (60 loc) · 1.53 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
65
66
67
68
69
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
workflow_call:
outputs:
run-id:
description: ci run id
value: ${{ github.run_id }}
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build-test:
runs-on: macos-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
9.0.x
10.0.x
- name: Prepare tools
run: chmod +x publish.sh run-tests.sh
- name: Run tests
run: ./run-tests.sh
- name: Publish binaries
run: ./publish.sh
- name: Locate binaries
id: bins
run: |
set -euo pipefail
files=()
while IFS= read -r f; do files+=("$f"); done < <(find "$GITHUB_WORKSPACE/build/release" -type f -print | sort)
if [ "${#files[@]}" -eq 0 ]; then echo "::error::No release binaries found"; exit 1; fi
{
echo "paths<<EOF"
printf "%s\n" "${files[@]}"
echo "EOF"
} >> "$GITHUB_OUTPUT"
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: procvd-binaries
path: ${{ steps.bins.outputs.paths }}
if-no-files-found: error
retention-days: 1