~ciriarte/apizotl

674c11df6e46ba8245f271ad3bdccf226a732731 — Carlos Iriarte 2 years ago ca584eb
ci: add CI
1 files changed, 10 insertions(+), 8 deletions(-)

M .builds/ci.yml
M .builds/ci.yml => .builds/ci.yml +10 -8
@@ 1,15 1,17 @@
image: ubuntu
image: ubuntu/lts
sources:
  - https://git.sr.ht/~ciriarte/apizotl
packages:
  - pkg-config
  - libssl-dev
  - curl
tasks:
  - setup: |
    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
      curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
  - build: |
    cd apizotl
    cargo build --release
  - execute: |
    ./target/release/apizotl presidents
    ./target/release/apizotl congress senators --legislature LXIV
    ./target/release/apizotl congress deputies --legislature LXIV
\ No newline at end of file
      cd apizotl
      source $HOME/.cargo/env
      cargo build --release
      ./target/release/apizotl presidents
      ./target/release/apizotl congress senators --legislature LXIV
      ./target/release/apizotl congress deputies --legislature LXIV
\ No newline at end of file