diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..50eb553 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +github: rick-gnous diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..fe89e52 --- /dev/null +++ b/.github/dependabot.yml @@ -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" diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..35c2bfd --- /dev/null +++ b/.github/workflows/main.yml @@ -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 diff --git a/Makefile b/Makefile index 98d9125..8bc8ebc 100644 --- a/Makefile +++ b/Makefile @@ -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 \ No newline at end of file diff --git a/README.md b/README.md index e9b649f..91ce7b7 100644 --- a/README.md +++ b/README.md @@ -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 d’utiliser le Makefile avec la commande `make <nom programme>`; pour le helloworld par exemple : `make hello`. +Il est aussi possible d’utiliser 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.