-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (49 loc) · 1.53 KB
/
build-meson.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
50
51
name: Build and Upload meson blint-db 0.1.0
on:
schedule:
- cron: "0 */6 * * *"
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: appthreat/blintdb
jobs:
builder-meson:
runs-on: ['self-hosted', 'ubuntu', 'arm64']
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v4
with:
repository: AppThreat/blint-db
path: blint-db
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine build
cd blint-db && python -m pip install .
- name: Install apt package
run: |
sudo apt clean && sudo apt update
sudo apt install libzmq3-dev libx11-dev qtbase5-dev libgl1-mesa-dev ninja-build file -y
- name: Install ORAS
run: |
curl -LO "https://github.com/oras-project/oras/releases/download/v1.2.0/oras_1.2.0_linux_amd64.tar.gz"
mkdir -p oras-install/
tar -zxf oras_1.2.0_*.tar.gz -C oras-install/
sudo mv oras-install/oras /usr/local/bin/
rm -rf oras_1.2.0_*.tar.gz oras-install/
sudo chmod +x /usr/local/bin/oras
- name: Build and upload db
run: |
mkdir -p temp
cd blint-db
python blint_db/cli.py -Z1
echo "$GITHUB_USERNAME;;$GITHUB_TOKEN" | python ./.oras/orasclient.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_USERNAME: ${{ github.actor }}