Compare commits

...

5 commits

Author SHA1 Message Date
rick 0c43aaf858
update: information commande make défaut 2021-06-03 19:39:25 +02:00
Bensuperpc 0f4cd06e20 Improve makefile
Improve makefile

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
2021-06-03 19:11:48 +02:00
Bensuperpc a6a5d31e17 Remove clean rule in github CI
Remove clean rule in github CI

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
2021-06-03 17:54:31 +02:00
Bensuperpc 1e4f42b272 Add github CI
Add github CI

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
2021-06-03 17:49:54 +02:00
Bensuperpc fc5b8ddfd8 Add Docker
Add Docker

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
2021-06-03 17:43:30 +02:00
5 changed files with 50 additions and 3 deletions

1
.github/FUNDING.yml vendored Normal file
View file

@ -0,0 +1 @@
github: rick-gnous

9
.github/dependabot.yml vendored Normal file
View file

@ -0,0 +1,9 @@
# Set update schedule for GitHub Actions
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every weekday
interval: "daily"

27
.github/workflows/main.yml vendored Normal file
View file

@ -0,0 +1,27 @@
name: Test-MSX
on:
push:
branches:
- 'main'
- 'master'
- 'dev'
paths-ignore:
- '**/README.md'
pull_request:
branches:
- '*'
workflow_dispatch:
jobs:
image:
name: Test-MSX
runs-on: ubuntu-20.04
steps:
- name: "📥 Checkout Code"
uses: actions/checkout@v2.3.4
with:
submodules: 'recursive'
fetch-depth: 0
- name: "🛠️ Build"
run: make docker

View file

@ -1,5 +1,15 @@
CC=sjasmplus
CFLAGS=
DOCKER=docker
%:
CFLAGS=
SRCS = $(wildcard *.asm)
OBJ = $(patsubst %.asm,%,$(SRCS))
all: $(OBJ)
$(OBJ):
$(CC) $@.asm --raw=$@.rom
docker:
$(DOCKER) pull bensuperpc/sjasmplus:latest
$(DOCKER) run --rm -v "$(PWD)":/usr/src/myapp -w /usr/src/myapp bensuperpc/sjasmplus:latest make all

View file

@ -6,6 +6,6 @@ Le compilateur [SJASMplus](https://github.com/z00m128/sjasmplus) est utilisé af
sjasmplus hello.asm --raw=hello.rom
```
Il est aussi possible dutiliser le Makefile avec la commande `make <nom programme>`; pour le helloworld par exemple : `make hello`.
Il est aussi possible dutiliser le Makefile avec la commande `make <nom programme>`; pour le helloworld par exemple : `make hello`. La commande `make` compilera tous les fichiers .asm.
Je m'appuie sur [les tutos de Chibiakumas](https://www.chibiakumas.com/z80/msx.php) pour lécriture des différents programmes.