Skip to content

Commit 1ffc2ae

Browse files
committed
WIP: testing basic github action - no docker x2
1 parent b869dc0 commit 1ffc2ae

File tree

1 file changed

+21
-22
lines changed

1 file changed

+21
-22
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,29 @@
1-
name: "build"
1+
name: C++ CI
22

33
on:
44
push:
5-
branches: ["main"]
5+
branches: [ main ]
66
pull_request:
7-
branches: ["main"]
7+
branches: [ main ]
88

99
jobs:
10-
build-container:
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: actions/checkout@v2
14-
- name: Build and push Docker image
15-
uses: docker/build-push-action@v2
16-
with:
17-
context: .
18-
push: true
19-
tags: ghcr.io/diffcheckorg/diffcheck-windows:latest
20-
21-
configure-and-build:
22-
needs: build-container
10+
build:
2311
runs-on: windows-latest
24-
container:
25-
image: ghcr.io/diffcheckorg/diffcheck-windows:latest
12+
2613
steps:
27-
- uses: actions/checkout@v4
28-
with:
29-
lfs: true
30-
submodules:
14+
- uses: actions/checkout@v2
15+
16+
- name: Create Build Environment
17+
run: cmake -E make_directory ${{github.workspace}}/build
18+
19+
- name: Configure CMake
20+
shell: cmd
21+
run: |
22+
cd ${{github.workspace}}/build
23+
cmake .. -DCMAKE_BUILD_TYPE=Release
24+
25+
- name: Build
26+
shell: cmd
27+
run: |
28+
cd ${{github.workspace}}/build
29+
cmake --build . --config Release

0 commit comments

Comments
 (0)