From cc8fcceab9a22ca86eb1ce92d5fdc3393f96411b Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Sun, 26 Feb 2023 19:41:22 +0200 Subject: [PATCH 1/5] Create d.yml --- .github/workflows/d.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/d.yml diff --git a/.github/workflows/d.yml b/.github/workflows/d.yml new file mode 100644 index 0000000..61984fd --- /dev/null +++ b/.github/workflows/d.yml @@ -0,0 +1,32 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +name: D + +on: + push: + branches: [ "vardec_varass_dependency" ] + pull_request: + branches: [ "master" ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: dlang-community/setup-dlang@4c99aa991ce7d19dd3064de0a4f2f6b2f152e2d7 + + - name: 'Build & Test' + run: | + # Build the project, with its main file included, without unittests + dub build --compiler=$DC + # Build and run tests, as defined by `unittest` configuration + # In this mode, `mainSourceFile` is excluded and `version (unittest)` are included + # See https://dub.pm/package-format-json.html#configurations + dub test --compiler=$DC From 202db8cca44ed713997718368e51a7dfefeaa684 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Sun, 26 Feb 2023 19:43:28 +0200 Subject: [PATCH 2/5] Update d.yml --- .github/workflows/d.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/d.yml b/.github/workflows/d.yml index 61984fd..9e94c06 100644 --- a/.github/workflows/d.yml +++ b/.github/workflows/d.yml @@ -13,6 +13,7 @@ on: permissions: contents: read + jobs: build: From 5f22ca65c0d023cb56279521fe2a4177a81a5a37 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Sun, 26 Feb 2023 19:46:02 +0200 Subject: [PATCH 3/5] Update d.yml --- .github/workflows/d.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/d.yml b/.github/workflows/d.yml index 9e94c06..d1ac457 100644 --- a/.github/workflows/d.yml +++ b/.github/workflows/d.yml @@ -10,10 +10,11 @@ on: pull_request: branches: [ "master" ] +on: workflow_dispatch + permissions: contents: read - jobs: build: From 38cfb6293c740a474587af8cbea23840ab69ace8 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Sun, 26 Feb 2023 19:46:38 +0200 Subject: [PATCH 4/5] Update d.yml --- .github/workflows/d.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/d.yml b/.github/workflows/d.yml index d1ac457..2bb686b 100644 --- a/.github/workflows/d.yml +++ b/.github/workflows/d.yml @@ -9,8 +9,7 @@ on: branches: [ "vardec_varass_dependency" ] pull_request: branches: [ "master" ] - -on: workflow_dispatch + workflow_dispatch: permissions: contents: read From f0c1534fcdbee9913799893359a3a551e7087102 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Sun, 26 Feb 2023 19:48:04 +0200 Subject: [PATCH 5/5] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 63b47a4..372a06d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ tlang ===== +[![D](https://github.com/tbklang/tlang/actions/workflows/d.yml/badge.svg)](https://github.com/tbklang/tlang/actions/workflows/d.yml) + Official Tristan Language project compiler ## Docs @@ -25,4 +27,4 @@ A list of all commands can be found by typing in the following: ``` ./tlang -``` \ No newline at end of file +```