-
Notifications
You must be signed in to change notification settings - Fork 22
66 lines (66 loc) · 2.32 KB
/
workflow.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
name: Build
on:
push:
schedule:
- cron: '*/5 * * * *'
workflow_dispatch:
env:
FORCE_INSTALL: 1
HAS_OPENSSL_BUILD: 1
HAS_OPENSSL_W32BUILD: 0
ACID32: 1
HOMEBREW_NO_INSTALL_CLEANUP: 1
HOMEBREW_NO_AUTO_UPDATE: 1
PROD: ${{ github.ref == 'refs/heads/github-actions' }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
build:
runs-on: m1_monterey
steps:
- name: Checkout Repository
uses: actions/checkout@v4
# with:
# ref: github-actions
- name: Set up Python 3
run: brew install python3 python-tk
# - uses: actions/setup-python@v4
# with:
# python-version: '3.10'
# cache: pip
- name: Install Python Dependencies
run: |
python3 -m pip install -U pip wheel
python3 -m pip install hammock python-dateutil datetime termcolor2 purl python-magic humanize gitpython cryptography macholib
echo "OVERRIDE_PYTHON3=$(which python3)" >> "$GITHUB_ENV"
# - name: Check Parallel
# run: python3 -u parallel_check.py ${{ secrets.GITHUB_TOKEN }}
- name: Install Build Dependencies
run: | # Needing for VoodooI2C to build without actually having cldoc & cpplint
brew tap FiloSottile/homebrew-musl-cross
brew install libmagic mingw-w64 openssl musl-cross
mkdir wrappers
printf "#!/bin/bash\nexit 0" > wrappers/cldoc
printf "#!/bin/bash\nexit 0" > wrappers/cpplint
chmod +x wrappers/cldoc wrappers/cpplint
echo "$(readlink -f wrappers)" >> "$GITHUB_PATH"
- uses: fregante/setup-git-user@2e28d51939d2a84005a917d2f844090637f435f8
- name: Set Up Working Tree
uses: actions/checkout@v4
with:
ref: builds
path: Config
- name: Check Ratelimit
run: python3 -u check_ratelimit.py ${{ secrets.GITHUB_TOKEN }}
- name: Run Builder
run: python3 -u updater.py ${{ secrets.GITHUB_TOKEN }} ${{ secrets.WEBHOOK_URL }} ${{ secrets.PAYLOAD_KEY }}
env:
JOB_NAME: ${{ github.job }}
- name: Check Ratelimit
run: python3 -u check_ratelimit.py ${{ secrets.GITHUB_TOKEN }}
- name: Upload Artifact
uses: actions/upload-artifact@v4
if: ${{ env.PROD == 'false' }}
with:
name: Build
path: Config