-
-
Notifications
You must be signed in to change notification settings - Fork 70
71 lines (55 loc) · 1.53 KB
/
Copy pathtest-version.yml
File metadata and controls
71 lines (55 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
70
71
name: Test Version
on: [workflow_dispatch]
jobs:
test1:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v2
- name: Get the version
id: get_version
run: |
TAG=$(git tag -l --sort=-creatordate | head -n 1)
VERSION=$(echo $TAG | sed 's/v//')
echo ::set-output name=version::$VERSION
- name: Get the version
env:
VERSION: ${{ steps.get_version.outputs.VERSION }}
run: |
echo "VERSION -> $VERSION"
echo "TAG2 -> $(git tag -l --sort=-creatordate | head -n 1)"
test-mac:
runs-on: [self-hosted, macOS, ARM64]
timeout-minutes: 20
steps:
# - name: Git Fetch (to fix (would clobber existing tag)
# run: git fetch --tags --force
- name: Checkout
uses: actions/checkout@v1
with:
fetch-depth: 0
test-windows:
# runs-on: [self-hosted, Windows]
runs-on: windows-latest
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
test-linux-arm64:
runs-on: [self-hosted, Linux, ARM64]
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
test-linux-amd64:
# runs-on: ubuntu-20.04
runs-on: [self-hosted, Linux, X64, ubuntu-16]
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0