This repository has been archived by the owner on Sep 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (55 loc) · 1.73 KB
/
basic-env-setup.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
55
56
57
58
59
60
name: "Basic Environment Setup"
on: [push, workflow_dispatch]
jobs:
lsb_release:
runs-on: [self-hosted, Ubuntu]
steps:
- uses: actions/checkout@v3
- name: "Print Environment Info"
run: |
uname -a
lsb_release --all
# https://snapcraft.io/
snap:
runs-on: [self-hosted, Ubuntu]
needs: [lsb_release, homebrew]
steps:
- uses: actions/checkout@v3
# https://github.com/ConorMacBride/install-package
- uses: ConorMacBride/install-package@v1
with:
apt: snap
- name: "Print Snap Version"
run: snap --version
# https://github.com/Homebrew/actions
homebrew:
runs-on: [self-hosted, Ubuntu]
steps:
- uses: actions/checkout@v3
# https://docs.brew.sh/Homebrew-on-Linux#requirements
- uses: ConorMacBride/install-package@v1
with:
apt: build-essential procps curl file git gcc
- name: "Install Homebrew"
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
brew --version
# https://formulae.brew.sh/formula/hello#default
- uses: ConorMacBride/install-package@v1
with:
brew: hello
- name: "Install(Brew) hello"
run: |
PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"
brew install hello
chocolatey:
runs-on: [self-hosted, Windows]
needs: lsb_release
steps:
- uses: actions/checkout@v3
- uses: ConorMacBride/install-package@v1
with:
choco: 7zip.portable # https://community.chocolatey.org/packages/7zip.portable
- name: "Print 7zip help"
run: 7z --help