Skip to content

Commit d7e2b3f

Browse files
committed
Add automated build action
1 parent 763ba9c commit d7e2b3f

File tree

3 files changed

+75
-0
lines changed

3 files changed

+75
-0
lines changed

.github/workflows/build.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- '*'
8+
pull_request:
9+
branches:
10+
- main
11+
- '*'
12+
13+
env:
14+
# Path to the solution file relative to the root of the project.
15+
SOLUTION_FILE_PATH: .
16+
17+
permissions:
18+
contents: read
19+
20+
defaults:
21+
run:
22+
shell: bash {0}
23+
24+
jobs:
25+
build:
26+
runs-on: ubuntu-latest
27+
28+
steps:
29+
# disabled for now, uncomment if need to install package
30+
# - name: Setup Requirements
31+
# run: |
32+
# sudo apt-get install mingw-w64
33+
34+
- name: Checkout
35+
uses: actions/checkout@v4
36+
37+
- name: Fetch Toolshed
38+
uses: robinraju/release-downloader@v1
39+
with:
40+
repository: nitros9project/toolshed
41+
fileName: toolshed-unix*.tgz
42+
latest: true
43+
extract: false
44+
out-file-path: toolshed
45+
46+
- name: Install Toolshed
47+
run: |
48+
sudo tar xvf toolshed/toolshed-unix*.tgz --strip-components=1 -C /usr/local/bin
49+
50+
- name: Install Lwtools
51+
run: |
52+
sudo bash ./.github/workflows/lwtools.sh
53+
54+
- name: Build NitrOS9
55+
run: |
56+
sudo bash ./.github/workflows/nitros9.sh
57+
58+

.github/workflows/lwtools.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
#
3+
# Build lwtools from source
4+
#
5+
mkdir -p lwtools
6+
cd lwtools
7+
wget http://www.lwtools.ca/releases//lwtools/lwtools-4.24.tar.gz
8+
tar xvf lwtools-4.24.tar.gz
9+
cd lwtools-4.24/
10+
sudo make install

.github/workflows/nitros9.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
#
3+
# Build nitros9 from source
4+
#
5+
ls -al
6+
make
7+
make dsk

0 commit comments

Comments
 (0)