Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Build

on:
push:
branches:
- main
- '*'
pull_request:
branches:
- main
- '*'

env:
# Path to the solution file relative to the root of the project.
SOLUTION_FILE_PATH: .

permissions:
contents: read

defaults:
run:
shell: bash {0}

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Setup Requirements
run: |
sudo apt-get install jam

- name: Checkout
uses: actions/checkout@v4

- name: Fetch Toolshed
uses: robinraju/release-downloader@v1
with:
repository: nitros9project/toolshed
fileName: toolshed-*.tgz
latest: true
extract: false
out-file-path: toolshed

- name: Install Toolshed
run: |
sudo tar xvf toolshed/toolshed-[0-9]*.*.tgz --strip-components=1 -C /usr/local/bin
sudo ln -s /bin/bash /usr/local/bin/xroar

- name: Install Lwtools
run: |
sudo bash ./setup/lwtools.sh

- name: Build
run: |
jam balls

- name: Display structure of downloaded files
run: ls -al



64 changes: 64 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Release

on:
push:
tags:
- 'v*'

env:
# Path to the solution file relative to the root of the project.
SOLUTION_FILE_PATH: .

permissions:
contents: write

defaults:
run:
shell: bash {0}

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Setup Requirements
run: |
sudo apt-get install jam

- name: Checkout
uses: actions/checkout@v4

- name: Fetch Toolshed
uses: robinraju/release-downloader@v1
with:
repository: nitros9project/toolshed
fileName: toolshed-*.tgz
latest: true
extract: false
out-file-path: toolshed

- name: Install Toolshed
run: |
sudo tar xvf toolshed/toolshed-[0-9]*.*.tgz --strip-components=1 -C /usr/local/bin
sudo ln -s /bin/bash /usr/local/bin/xroar

- name: Install Lwtools
run: |
sudo bash ./setup/lwtools.sh

- name: Build
run: |
tag=$(git describe --tags --abbrev=0)
jam -sTAG=$tag balls

- name: Display structure of downloaded files
run: ls -al

- name: Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: "craigtst-*.tgz"


45 changes: 25 additions & 20 deletions Jamfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@

SubDir coco-test ;

disk = [ FDirName $(TOP) itest.dsk ] ;

ASM = [ Glob $(SUBDIR) : *.asm ] ;

TARGETS = i1.asm i2.asm i3.asm ;

DEPS = $(DEP:S=.asm) ;

for t in $(TARGETS:BS)
{
local out = [ Assembly $(t) ] ;
Run $(out) : $(disk) : $(files:U) : $(disk2) ;
Depends $(out) : $(DEPS) ;
LOCATE on $(DEPS) = $(SUBDIR) ;
}

DecbCopyAll $(disk) : $(ASM) ;

SubDir coco-test ;

disk = [ FDirName $(TOP) craigtst.dsk ] ;

ASM = [ Glob $(SUBDIR) : *.asm ] ;

TARGETS = i1.asm i2.asm i3.asm ;

DEPS = $(DEP:S=.asm) ;

for t in $(TARGETS:BS)
{
local out = [ Assembly $(t) ] ;
Run $(out) : $(disk) : $(files:U) : $(disk2) ;
Depends $(out) : $(DEPS) ;
LOCATE on $(DEPS) = $(SUBDIR) ;
}

TAG ?= v0.0 ;
VERSION = craigtst-$(TAG) ;

Ball $(VERSION).tgz : $(disk) ;


Loading