Create bin files #106
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_l4 code/PRNG1_m32.c | |
gcc -o code/PRNG2_m32_l4 code/PRNG1_m64.c | |
gcc -o code/PRNG2_m32_l4 code/PRNG2_m32_l4.c | |
gcc -o code/PRNG2_m32_l8 code/PRNG2_m32_l8.c | |
gcc -o code/PRNG2_m64_l8 code/PRNG2_m64_l8.c | |
gcc -o code/PRNG2_m64_l16 code/PRNG2_m64_l16.c | |
- name: Listar arquivos compilados | |
run: | | |
echo "Arquivos na pasta code:" | |
ls -l code/ | |
- name: Definir permissões de execução | |
run: | | |
chmod +x code/PRNG1_m32 | |
chmod +x code/PRNG1_m64 | |
chmod +x code/PRNG2_m32_l4 | |
chmod +x code/PRNG2_m32_l8 | |
chmod +x code/PRNG2_m64_l8 | |
chmod +x code/PRNG2_m64_l16 | |
- name: Executar os programas | |
run: | | |
echo "Executando os scripts PRNG..." | |
echo " PRNG1 " | |
echo "m=32" | |
./code/PRNG1_m32 | |
echo "m=64" | |
./code/PRNG1_m64 | |
echo " PRNG2 " | |
echo "m=32 l=4" | |
./code/PRNG2_m32_l4 | |
echo "m=32 l=8" | |
./code/PRNG2_m32_l8 | |
echo "m=64 l=8" | |
./code/PRNG2_m64_l8 | |
echo "m=64 l =16" | |
./code/PRNG2_m64_l16 |