-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsparrow.yaml
70 lines (60 loc) · 1.68 KB
/
sparrow.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
65
66
67
68
69
70
image:
- melezhik/sparrow:ubuntu_arm
tasks:
-
name: test
default: true
language: Bash
code: |
set -e
set -x
s6 --index-update
cd source
tomty --profile=ci --all --show-failed --color
depends:
-
name: install-zef-deps
-
name: install-system-deps
-
name: install-zef-deps
language: Bash
code: |
set -e
cd source
zef install . --/test
-
name: install-system-deps
language: Bash
config:
distr: https://github.com/PowerShell/PowerShell/releases/download/v7.3.7/powershell-7.3.7-linux-arm64.tar.gz
code: |
set -e
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
sudo apt-get update -yq
sudo apt-get install -yq \
ruby-dev ruby-bundler \
python3-pip python3-dev python3-pytest \
carton cpanminus \
libc6 \
libgcc1 \
libgcc-s1 \
libgssapi-krb5-2 \
libicu70 \
liblttng-ust1 \
libssl3 \
libstdc++6 \
libunwind8 \
zlib1g
# Download the powershell '.tar.gz' archive
curl -L -o /tmp/powershell.tar.gz $(config distr)
# Create the target folder where powershell will be placed
sudo mkdir -p /opt/microsoft/powershell/7
# Expand powershell to the target folder
sudo tar zxf /tmp/powershell.tar.gz -C /opt/microsoft/powershell/7
# Set execute permissions
sudo chmod +x /opt/microsoft/powershell/7/pwsh
# Create the symbolic link that points to pwsh
sudo ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh
pwsh --version
followup_job: .sparrow/publish.yaml