Skip to content

Update PRNG.yml

Update PRNG.yml #15

Workflow file for this run

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 main/PRNG2_m32_l8 code/PRNG2_m32_l8.c || { echo "Falha ao compilar PRNG2_m32_l8.c"; exit 1; }
gcc -o main/PRNG_m64_l8 code/PRNG_m64_l8.c || { echo "Falha ao compilar PRNG_m64_l8.c"; exit 1; }
gcc -o main/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