-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 879 Bytes
/
basic.yaml
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
# This workflow will run stuff on the basic version of tictactoe
name: Basic
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-22.04
defaults:
run:
working-directory: ./tictactoe_basic
steps:
- uses: actions/checkout@v4
- name: Install fbc
run: |
sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install libtinfo5
wget -O FreeBASIC-1.10.1-linux-x86_64.tar.gz 'http://downloads.sourceforge.net/fbc/FreeBASIC-1.10.1-linux-x86_64.tar.gz?download'
ls
tar xzf FreeBASIC-1.10.1-linux-x86_64.tar.gz
cd FreeBASIC-1.10.1-linux-x86_64
sudo ./install.sh -i
fbc --version
- name: Compile
run: fbc tictactoe_basic.bas
- name: Run
run: ./tictactoe_basic 4 4