-
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (46 loc) · 1.41 KB
/
Test.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
51
52
53
54
name: Test
on:
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- name: Get BIN_DIR
id: bin-dir
shell: bash
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
bin_dir='${{ github.workspace }}/AssemblyLoader/bin/${{ matrix.BuildConfiguration }}'
elif [ "$RUNNER_OS" == "Windows" ]; then
bin_dir='${{ github.workspace }}\AssemblyLoader\bin\${{ matrix.BuildConfiguration }}'
else
echo "$RUNNER_OS not supported"
exit 1
fi
echo "$bin_dir"
echo "BIN_DIR=$bin_dir" >> $GITHUB_ENV
- name: Get BRANCH_NAME
id: branch-name
shell: bash
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
split=(${GITHUB_REF_NAME//\// })
elif [ "$RUNNER_OS" == "Windows" ]; then
split=(${GITHUB_REF_NAME////// })
else
echo "$RUNNER_OS not supported"
exit 1
fi
index=$((${#split[@]}-1))
branch_name=${split[$index]}
echo "$branch_name"
echo "BRANCH_NAME=$branch_name" >> $GITHUB_ENV
- name: Get Build Artifacts
if: false
shell: bash
run: |
mkdir -p Packages
curl -sS -O -L 'https://github.com/${{ github.repository_owner }}/Build-Configs/blob/master/{snKey.snk,Kitty.png}'