forked from Homebrew/homebrew-core
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (49 loc) · 1.74 KB
/
wheezy_tests.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
name: Wheezy CI
on:
pull_request:
paths:
- "Formula/patchelf.rb"
- "Formula/binutils.rb"
jobs:
wheezy_tests:
if: github.repository == 'Homebrew/homebrew-core' && github.event_name == 'pull_request' && ! contains(github.event.pull_request.labels.*.name, 'CI-syntax-only')
runs-on: ubuntu-latest
env:
HOMEBREW_CORE_GIT_REMOTE: ${{github.event.repository.html_url}}
HOMEBREW_FORCE_HOMEBREW_ON_LINUX: 1
steps:
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Setup bottles folder
run: |
rm -rf ~/bottles
mkdir ~/bottles
- name: Run Docker
env:
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_NO_ANALYTICS: 1
HOMEBREW_DEVELOPER: 1
HOMEBREW_ON_DEBIAN7: 1
HOMEBREW_CURL_PATH: "/usr/bin/curl"
HOMEBREW_GIT_PATH: "/usr/bin/git"
run: |
set -eux
docker pull homebrew/debian7:latest
docker run -v /home/linuxbrew:/home/linuxbrew -v ~/bottles:/home/linuxbrew/bottles -u root --env-file <(env | grep 'HOMEBREW\|GITHUB') homebrew/debian7:latest bash -c 'cd /root && brew test-bot --only-formulae && cp *.bottle.* /home/linuxbrew/bottles'
- name: Count bottles
if: always()
run: |
cd ~/bottles
count=$(ls *.json | wc -l | xargs echo -n)
echo "$count bottles"
echo "::set-output name=count::$count"
- name: Move bottles
if: always() && steps.bottles.outputs.count > 0
run: mv ~/bottles $GITHUB_WORKSPACE
- name: Upload bottles
if: always()
uses: actions/upload-artifact@v2
with:
name: bottles
path: ~/bottles