-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (43 loc) · 1.42 KB
/
ci.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
name: CI
on: [push, pull_request]
jobs:
macos_intel_operational_test:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- run: brew install ./piping-server.rb
- run: piping-server --version
- run: piping-server --help
linux_amd64_operational_test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
# "brew: command not found" occurred without the following
- name: Install brew
run: |
set -eu
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo "/home/linuxbrew/.linuxbrew/bin" >> $GITHUB_PATH
- run: brew install ./piping-server.rb
- run: piping-server --version
- run: piping-server --help
linux_arm64_operational_test:
# ERROR: "Homebrew on Linux is only supported on Intel processors!"
if: false
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Operational test
run: |
docker run --rm -i -v $PWD:/ws --platform=linux/arm64/v8 ubuntu:18.04 bash <<'EOF'
set -xeu
cd /ws
apt update && apt install -y curl git ruby
# Install brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install ./piping-server.rb
piping-server --version
piping-server --help
EOF