Skip to content

Commit 6267943

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

File tree

3 files changed

+74
-0
lines changed

3 files changed

+74
-0
lines changed

.github/workflows/build.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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+
- name: Setup Requirements
30+
run: |
31+
sudo apt-get install mingw-w64
32+
33+
- name: Checkout
34+
uses: actions/checkout@v4
35+
36+
- name: Fetch Toolshed
37+
uses: robinraju/release-downloader@v1
38+
with:
39+
repository: nitros9project/toolshed
40+
fileName: toolshed-unix*.tgz
41+
latest: true
42+
extract: false
43+
out-file-path: toolshed
44+
45+
- name: Install Toolshed
46+
run: |
47+
sudo tar xvf toolshed/toolshed-unix*.tgz --strip-components=1 -C /usr/local/bin
48+
49+
- name: Install Lwtools
50+
run: |
51+
sudo bash ./.github/workflows/lwtools.sh
52+
53+
- name: Build NitrOS9
54+
run: |
55+
sudo bash ./.github/workflows/nitros9.sh
56+
57+

.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)