|
1 | 1 | on: [push] |
2 | 2 | name: Debugger CI |
3 | 3 | jobs: |
| 4 | + build-vscode-extension: |
| 5 | + name: Build vscode-extension |
| 6 | + runs-on: ubuntu-latest # or macOS-latest, or windows-latest |
| 7 | + steps: |
| 8 | + - uses: actions/checkout@v4 |
| 9 | + with: |
| 10 | + submodules: recursive |
| 11 | + - uses: cachix/install-nix-action@v31 |
| 12 | + with: |
| 13 | + nix_path: nixpkgs=channel:nixos-unstable |
| 14 | + |
| 15 | + - name: Build extension |
| 16 | + run: | |
| 17 | + cd vscode-extension/ |
| 18 | + nix-build |
| 19 | +
|
| 20 | + - name: Upload extension artifact |
| 21 | + uses: actions/upload-artifact@v4 |
| 22 | + with: |
| 23 | + name: Extension Vsix |
| 24 | + path: vscode-extension/result/haskell-debugger-extension-0.1.0.vsix |
| 25 | + |
4 | 26 | build-ghc-debugger: |
5 | 27 | name: Build ghc-debug-adapter |
6 | 28 | runs-on: ubuntu-latest # or macOS-latest, or windows-latest |
7 | 29 | steps: |
8 | 30 | - uses: actions/checkout@v4 |
9 | 31 | with: |
10 | 32 | submodules: recursive |
| 33 | + |
11 | 34 | - uses: haskell-actions/setup@v2 |
12 | 35 | with: |
13 | 36 | ghc-version: latest-nightly |
14 | 37 | cabal-version: latest |
15 | 38 | ghcup-release-channel: https://ghc.gitlab.haskell.org/ghcup-metadata/ghcup-nightlies-0.0.7.yaml |
16 | 39 |
|
17 | | - - name: Build ghc-debug-adapter |
18 | | - run: cabal build exe:ghc-debug-adapter |
| 40 | + - uses: cachix/install-nix-action@v31 |
| 41 | + with: |
| 42 | + nix_path: nixpkgs=channel:nixos-unstable |
19 | 43 |
|
20 | | - - name: Test ghc-debug-adapter |
21 | | - run: | |
| 44 | + - run: cabal build exe:ghc-debug-adapter |
| 45 | + |
| 46 | + test-ghc-debugger: |
| 47 | + name: Test ghc-debug-adapter |
| 48 | + needs: build-ghc-debugger |
| 49 | + steps: |
| 50 | + - run: | |
22 | 51 | cd test/integration-tests/ |
23 | 52 | make clean && make build && make test |
24 | 53 |
|
0 commit comments