-
Notifications
You must be signed in to change notification settings - Fork 22
113 lines (100 loc) · 2.86 KB
/
vscode.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
name: vscode extension
on:
push:
branches:
- "**"
tags:
- "v*"
jobs:
test:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
# fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-node@v2
with:
node-version: '16.x'
- uses: pnpm/[email protected]
with:
version: "*"
- name: linux Install dosbox and dosbox-x tool
run: |
sudo apt-get update
sudo apt-get install dosbox
sudo apt install flatpak
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
sudo flatpak install flathub com.dosbox_x.DOSBox-X -y
if: runner.os == 'Linux'
- name: macOS Install dosbox and dosbox-x tool
run: |
brew update
brew install dosbox
brew install dosbox-x
if: runner.os == 'macOS'
- name: start xvfb for linux
run: |
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
echo ">>> Started xvfb"
if: runner.os == 'Linux'
- uses: actions/checkout@v2
with:
submodules: true
- name: install and test vscode-dosbox
run: |
pnpm install
pnpm compile
pnpm test-web
pnpm test
working-directory: ./vscode-dosbox
env:
DISPLAY: ":99.0"
- name: package
run: node dev/package.js
working-directory: ./vscode-dosbox
- name: install and test ./masm-tasm
run: |
pnpm install
pnpm compile-dev
pnpm test
pnpm test-web
working-directory: ./masm-tasm
env:
DISPLAY: ":99.0"
- run: pnpm lint
if: runner.os == 'Linux'
build:
needs: test
if: success()
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-node@v2
with:
node-version: "14"
- uses: pnpm/[email protected]
with:
version: 6.0.2
- name: install and package vscode-dosbox
working-directory: ./vscode-dosbox
run: |
pnpm
node dev/package.js --all
- uses: actions/upload-artifact@v2
with:
name: "vscepackages"
path: "./vscode-dosbox/*.vsix"
- run: npx vsce publish --packagePath $(find . -iname "*.vsix")
working-directory: ./vscode-dosbox
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
if: success() && startsWith( github.ref, 'refs/tags/')
- name: Publish
if: success() && startsWith( github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest'
run: npx vsce publish
working-directory: ./masm-tasm
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}