Skip to content

Commit f65f8de

Browse files
committed
try github action
1 parent 7c6fcf5 commit f65f8de

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

.github/workflows/build-and-test.yml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: build visuald
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
# Path to the solution file relative to the root of the project.
7+
SOLUTION_FILE_PATH: src/visuald_vs10.vcxproj
8+
9+
# Configuration type to build.
10+
BUILD_CONFIGURATION: Release
11+
BUILD_PLATFORM: x64
12+
BUILD_PLATFORM_TOOLSET: v142
13+
14+
jobs:
15+
build:
16+
runs-on: windows-latest
17+
18+
steps:
19+
- name: Checkout visuald
20+
uses: actions/checkout@v3
21+
with:
22+
path: visuald/trunk
23+
submodules: true
24+
# - name: Checkout cv2pdb
25+
# uses: actions/checkout@v3
26+
# with:
27+
# repository: rainers/cv2pdb
28+
# path: cv2pdb/trunk
29+
# - name: Checkout mago
30+
# uses: actions/checkout@v3
31+
# with:
32+
# repository: rainers/mago
33+
# path: mago
34+
- name: Prepare D compiler
35+
uses: dlang-community/setup-dlang@v1
36+
with:
37+
compiler: dmd-2.100.2
38+
- name: Add MSBuild to PATH
39+
uses: microsoft/setup-msbuild@v1.0.2
40+
- name: Setup VS environment
41+
uses: seanmiddleditch/gha-setup-vsdevenv@v4
42+
- name: Download Visual D
43+
uses: supplypike/setup-bin@v1
44+
with:
45+
uri: 'https://github.com/dlang/visuald/releases/download/v1.3.0/VisualD-v1.3.0.exe'
46+
name: 'VisualD-v1.3.0.exe'
47+
version: '1.3.0'
48+
command: ./VisualD-v1.3.0.exe /S
49+
- name: Build visuald
50+
working-directory: visuald/trunk
51+
run: |
52+
reg add "HKLM\SOFTWARE\DMD" /v InstallationDir /t REG_SZ /d c:\hostedtoolcache\windows\dc\dmd-2.100.2\x64 /reg:32 /f
53+
dir -R -l c:/hostedtoolcache/windows/dc
54+
nmake install_modules
55+
- name: Upload installer
56+
uses: actions/upload-artifact@v2
57+
with:
58+
name: installer
59+
path: visuald/downloads

0 commit comments

Comments
 (0)