-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
51 lines (50 loc) · 1.48 KB
/
action.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
name: "regolith"
description: "Bedrock Addons compiler pipeline."
inputs:
profile:
description: "profile to run"
default: "default"
required: false
github_token:
description: "GitHub Token for getting private filters"
default: ""
required: false
runs:
using: 'composite'
steps:
- name: setup-git-credentials
uses: de-vri-es/[email protected]
if: ${{ inputs.github_token != '' }}
with:
credentials: https://user:${{ inputs.github_token }}@github.com/
- name: deno
uses: denoland/setup-deno@v1
with:
deno-version: vx.x.x
- name: nim
uses: iffy/[email protected]
with:
version: stable
- name: list versions
shell: bash
run: |
python --version
node -v
nim -v
java -version
deno --version
dotnet --list-sdks
- name: regolith
shell: bash
run: |
wget https://github.com/Bedrock-OSS/regolith/releases/download/$(cat ${{ github.action_path }}/version)/regolith_$(cat ${{ github.action_path }}/version)_linux_amd64.tar.gz
tar -xzf regolith_$(cat ${{ github.action_path }}/version)_linux_amd64.tar.gz
mv regolith /usr/local/bin
rm regolith_$(cat ${{ github.action_path }}/version)_linux_amd64.tar.gz
chmod +x /usr/local/bin/regolith
- name: install
shell: bash
run: regolith install-all
- name: compile
shell: bash
run: regolith run ${{inputs.profile}}