-
-
Notifications
You must be signed in to change notification settings - Fork 53
57 lines (48 loc) · 1.37 KB
/
installer.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
52
53
54
55
56
57
name: Installer
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
paths:
- 'src/**'
- 'pyproject.toml'
- 'pdm.lock'
- '.github/workflows/docs.yml'
- '.github/workflows/installer.yml'
jobs:
installer:
name: Installer
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
arch: amd64
- os: ubuntu-latest
arch: arm64
# - os: macos-latest
# arch: amd64
- os: macos-latest
arch: arm64
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
cache: 'pip'
- name: macOS runner workaround
run: pip install --upgrade pip pipx
- name: Install DipDup
run: python src/dipdup/install.py --quiet --path .
- name: dipdup new
run: dipdup new --quiet
- name: dipdup init
run: cd dipdup_indexer; dipdup init
- name: Install dev dependencies
run: cd dipdup_indexer; pdm venv create; pdm remove dipdup; pdm add ..; pdm install
- name: make all
run: cd dipdup_indexer; $(pdm venv activate); make all
# NOTE: Installer is published in `docs` workflow