From 7c015264fc9155209bb925998cb67b6d1acac06f Mon Sep 17 00:00:00 2001 From: Matheus Sousa <132166437+Matheuzinh0@users.noreply.github.com> Date: Wed, 30 Oct 2024 15:31:12 -0300 Subject: [PATCH] Update statistical_tests.yml --- .github/workflows/statistical_tests.yml | 27 +++++++++---------------- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/.github/workflows/statistical_tests.yml b/.github/workflows/statistical_tests.yml index be52121..8158ba4 100644 --- a/.github/workflows/statistical_tests.yml +++ b/.github/workflows/statistical_tests.yml @@ -18,21 +18,14 @@ jobs: with: lfs: true # Habilita o suporte ao Git LFS - - name: Instalar Dependências + - name: Configurar e Executar em Docker run: | - sudo apt update - sudo apt install -y libtestu01-0-dev gcc autoconf automake libtool # Instala ferramentas necessárias - - - name: Compilar e Instalar TESTU01 - run: | - cd TESTU01/TestU01-1.2.3 # Navega para o diretório correto - ./bootstrap.sh || true # Tenta executar o bootstrap se disponível - ./configure # Configura o projeto - make # Compila o projeto - sudo make install # Instala o projeto - - - name: Compilar e Executar "teste" - run: | - gcc TESTU01/teste.c -o TESTU01/teste -Iinclude -Ilib -lmylib -ltestu01 -lprobdist -lm - chmod +x TESTU01/teste - ./TESTU01/teste + docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace ubuntu:20.04 /bin/bash -c " + apt update && + apt install -y autoconf automake libtool gcc g++ make libtestu01-0-dev && + cd TESTU01/TestU01-1.2.3 && + ./bootstrap.sh || true && + ./configure && + make && + sudo make install + "