From 358fe651ec8cc793026f9cf724a71aea8e292d88 Mon Sep 17 00:00:00 2001 From: Petar Kirov Date: Tue, 7 Mar 2023 09:38:48 +0200 Subject: [PATCH 1/2] config(editorconfig): Add more file types --- .editorconfig | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.editorconfig b/.editorconfig index 8025123..17a83ee 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,9 +1,22 @@ +# EditorConfig file: http://EditorConfig.org root = true -[*.{c,h,d,di,dd}] +[*] +charset = utf-8 end_of_line = lf insert_final_newline = true +trim_trailing_whitespace = true indent_style = space +indent_size = 2 +max_line_length = 80 + +[*.{d,h,hpp,c,cpp,cxx,cs,hs,java,kt,py,rs,sol}] indent_size = 4 -trim_trailing_whitespace = true -charset = utf-8 \ No newline at end of file + +[{Makefile,go.mod,go.sum,*.go,.gitmodules}] +indent_style = tab +indent_size = 4 + +[{CMakeLists.txt,*.cmake}] +indent_size = 2 +indent_style = space From f8f35a30de25f3890aea7c68f6c00e709fca1806 Mon Sep 17 00:00:00 2001 From: Petar Kirov Date: Tue, 7 Mar 2023 09:39:41 +0200 Subject: [PATCH 2/2] ci(gh-actions): Add initial CI pipeline config --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..751bf64 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: CI + +on: + workflow_dispatch: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + test: + name: "[${{ matrix.os }} | ${{ matrix.dc }}]" + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + dc: [dmd-latest, ldc-latest] + arch: [x86_64] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + + - name: Install D compiler + uses: dlang-community/setup-dlang@v1 + with: + compiler: ${{ matrix.dc }} + - name: Run tests + env: + DC: ${{matrix.dc}} + ARCH: ${{matrix.arch}} + run: | + dub test