Update PRNG.yml #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Executar Geradores | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Verificar código | |
uses: actions/checkout@v3 | |
- name: Compilar os programas | |
run: | | |
echo "Compilando os programas..." | |
gcc -o code/PRNG2_m32_l8 code/PRNG2_m32_l8.c || { echo "Falha ao compilar PRNG2_m32_l8.c"; exit 1; } | |
gcc -o code/PRNG_m64_l8 code/PRNG_m64_l8.c || { echo "Falha ao compilar PRNG_m64_l8.c"; exit 1; } | |
gcc -o code/PRNGm64_l16 code/PRNGm64_l16.c || { echo "Falha ao compilar PRNGm64_l16.c"; exit 1; } | |
- name: Listar arquivos compilados | |
run: | | |
echo "Arquivos na pasta code:" | |
ls -l code/ | |
- name: Definir permissões de execução | |
run: | | |
chmod +x code/PRNG2_m32_l8 | |
chmod +x code/PRNG_m64_l8 | |
chmod +x code/PRNGm64_l16 | |
- name: Executar os programas | |
run: | | |
echo "Executando os scripts PRNG..." | |
./code/PRNG2_m32_l8 | |
./code/PRNG_m64_l8 | |
./code/PRNGm64_l16 |