Add build script for SourceHut
authorJean THOMAS <git0@pub.jeanthomas.me>
Fri, 3 Jul 2020 12:56:28 +0000 (14:56 +0200)
committerJean THOMAS <git0@pub.jeanthomas.me>
Fri, 3 Jul 2020 12:56:28 +0000 (14:56 +0200)
.build.yml [new file with mode: 0644]

diff --git a/.build.yml b/.build.yml
new file mode 100644 (file)
index 0000000..8bfe734
--- /dev/null
@@ -0,0 +1,48 @@
+image: fedora/31
+packages:
+  - wget
+  - csh
+  - git
+  - gcc-c++
+  - bison
+  - flex
+  - tcl-devel
+  - readline-devel
+  - gawk
+  - libffi-devel
+  - graphviz
+  - pkg-config
+  - python3
+  - python3-devel
+  - boost-devel
+  - boost-python3-devel
+  - zlib-devel
+  - cmake
+  - eigen3-devel
+  - automake
+  - autoconf
+  - gperf
+  - libyaml-devel
+sources:
+  - https://git.sr.ht/~macbook/gram
+tasks:
+  - install-diamond: |
+      wget http://files.latticesemi.com/Diamond/3.11/diamond_3_11-base_x64-396-4-x86_64-linux.rpm -P /tmp
+      wget http://files.latticesemi.com/Diamond/3.11.2/diamond_3_11-sp2_x64-446-3-x86_64-linux.rpm -P /tmp
+      sudo rpm -ivh /tmp/*.rpm
+  - install-python-packages: |
+      pip install yowasp-yosys git+git://github.com/nmigen/nmigen.git git+git://github.com/nmigen/nmigen-boards.git git+git://github.com/nmigen/nmigen-stdio.git git+git://github.com/nmigen/nmigen-soc.git git+git://github.com/lambdaconcept/lambdasoc.git --user
+  - install-icarus-verilog: |
+      cd /tmp
+      git clone git://github.com/steveicarus/iverilog.git
+      cd iverilog
+      autoconf
+      ./configure
+      make -j$(nproc)
+      sudo make install
+  - install-gram: |
+      cd ~/gram
+      python setup.py install --user
+  - run-tests: |
+      cd ~/gram
+      contrib/test
\ No newline at end of file