-
Notifications
You must be signed in to change notification settings - Fork 327
43 lines (40 loc) · 1.31 KB
/
schedule-weekly.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
name: Schedule Weekly
on:
schedule:
- cron: "0 8 * * 3"
workflow_dispatch:
env:
DOCKER_HUB_USER: ${{ vars.DOCKER_HUB_USER }}
DOCKER_HUB_PASSWORD_RO: ${{ secrets.DOCKER_HUB_PASSWORD_RO }}
jobs:
bazel-build-fuzzers-weekly:
runs-on:
labels: dind-large
container:
image: ghcr.io/dfinity/ic-build@sha256:2e8185171700872d48fdfb4b08e175fca5be27b3fbbc4d7bed681ec8486f8b1d
options: >-
-e NODE_NAME
-v /cache:/cache
timeout-minutes: 60 # 1 hour
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Before script
id: before-script
shell: bash
run: |
[ -n "${NODE_NAME:-}" ] && echo "Node: $NODE_NAME"
- name: Load Service Account Key to file
env:
FUZZING_GCP_SERVICE_KEY: ${{ secrets.FUZZING_GCP_SERVICE_KEY }}
run: |
echo $FUZZING_GCP_SERVICE_KEY | base64 --decode > bin/fuzzing_service_account.json
- name: Build and Push Fuzzers to GCP
shell: bash
run: |
cd bin
gcloud auth activate-service-account --key-file fuzzing_service_account.json
./build-all-fuzzers.sh --zip
cd fuzzer_build
gsutil -m cp libfuzzer_asan_linux_*.zip gs://ic_fuzzer_builds
gsutil -m cp afl_asan_linux_*.zip gs://ic_fuzzer_builds