Skip to content

Commit 1974d40

Browse files
committed
add github actions
1 parent 2de8778 commit 1974d40

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/d.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
name: D
6+
7+
on:
8+
push:
9+
branches: [ "main" ]
10+
pull_request:
11+
branches: [ "main" ]
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
build:
18+
19+
runs-on: ${{matrix.os}}
20+
21+
strategy:
22+
matrix:
23+
os: [macos-latest, ubuntu-latest, windows-latest]
24+
25+
steps:
26+
- uses: actions/checkout@v3
27+
- uses: dlang-community/setup-dlang@4c99aa991ce7d19dd3064de0a4f2f6b2f152e2d7
28+
29+
- name: 'Build & Test'
30+
run: |
31+
# Build the project, with its main file included, without unittests
32+
dub build -b release --compiler=ldc
33+
34+
- name: Upload
35+
uses: actions/upload-artifact@v3
36+
with:
37+
name: build-${{matrix.os}}
38+
path: ${{github.workspace}}/cac*

0 commit comments

Comments
 (0)