-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (57 loc) · 1.94 KB
/
check.yaml
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
name: Check
on:
workflow_dispatch:
inputs:
check-tag:
description: 'Download artifacts for a specific tag and check they run'
required: true
concurrency:
group: ${{ github.ref_name }}-${{ inputs.check-tag }}
cancel-in-progress: true
jobs:
check-ubuntu-latest:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v4
# Lair Keystore
- name: Check Lair Keystore
id: lair-keystore
run: |
set -x
gh release download ${{ inputs.check-tag }} --pattern 'lair-keystore-x86_64-linux' --repo holochain/holochain
chmod +x lair-keystore-x86_64-linux
set +e
./lair-keystore-x86_64-linux --version
result=$?
set -e
echo "result=$result" >> "$GITHUB_OUTPUT"
outputs:
lair-keystore: ${{ steps.lair-keystore.outputs.result }}
check-ubuntu-24-04:
runs-on: ubuntu-24.04
env:
GH_TOKEN: ${{ github.token }}
steps:
- name: Check Lair Keystore
run: |
set -x
gh release download ${{ inputs.check-tag }} --pattern 'lair-keystore-x86_64-linux' --repo holochain/holochain
chmod +x lair-keystore-x86_64-linux
set +e
./lair-keystore-x86_64-linux --version
result=$?
set -e
echo ${{ github.runs-on }}
echo "ubuntu-latest:lair-keystore-x86_64-linux=$result" >> "$GITHUB_OUTPUT"
outputs:
lair-keystore: ${{ steps.lair-keystore.outputs.result }}
collect-results:
runs-on: ubuntu-latest
needs: [check-ubuntu-latest, check-ubuntu-24-04]
steps:
- name: Collect results
run: |
echo "ubuntu-latest:lair-keystore-x86_64-linux=${{ needs.check-ubuntu-latest.outputs.lair-keystore }}" >> "$GITHUB_OUTPUT"
echo "ubuntu-24.04:lair-keystore-x86_64-linux=${{ needs.check-ubuntu-24-04.outputs.lair-keystore }}" >> "$GITHUB_OUTPUT"