-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (52 loc) · 1.52 KB
/
PRNG.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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