-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d1c3a1d
commit bc607eb
Showing
4 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# 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-latest | ||
defaults: | ||
run: | ||
working-directory: ./tictactoe_basic | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install fbc | ||
run: | | ||
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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -296,3 +296,6 @@ repos: | |
|
||
# C# specific | ||
# None | ||
|
||
# basic specific | ||
# None |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
function AddNumbers( a as integer, b as integer ) as integer | ||
return a + b | ||
end function | ||
|
||
sub hello( ) | ||
print "hello" | ||
end sub | ||
|
||
declare sub myprint( num as integer ) | ||
|
||
'Code outside any procedures is the main part of the program | ||
hello( ) | ||
print AddNumbers( 1, 1 ) | ||
myprint 5 | ||
|
||
sub myprint( num as integer ) | ||
print num | ||
end sub |