-
Notifications
You must be signed in to change notification settings - Fork 18
47 lines (35 loc) · 1.19 KB
/
test-build-examples.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
name: "Build Examples"
on:
push
jobs:
build_pip:
name: "Build with Pip requirements"
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Workaround github issue https://github.com/actions/runner-images/issues/7192
run: sudo echo RESET grub-efi/install_devices | sudo debconf-communicate grub-pc
- run: |
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y install python3-pip python3-venv squashfs-tools build-essential python3-nftables
sudo mkdir /opt/packages
sudo chown $(whoami) /opt/packages
- run: |
pip3 install hatch
- run: |
hatch build
- run: |
ls
pwd
pip3 install -t /opt/packages -r ./examples/example_pip/requirements.txt
mksquashfs /opt/packages packages.squashfs
# - run: |
# ipfs add packages.squashfs
# TODO: There is currently no easy way pass the item_hash from a pin to a new program.
# - run: |
# aleph pin QmQr3dEd6LiFq6JmUJYPLrffy45RGFhPWsxWmzo9zZb7Sy
#
# - run: |
# aleph program ./examples/example_pip main:app