Skip to content

Commit b869dc0

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

File tree

1 file changed

+9
-26
lines changed

1 file changed

+9
-26
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,17 @@ on:
66
pull_request:
77
branches: ["main"]
88

9-
109
jobs:
1110
build-container:
12-
runs-on: windows-latest
11+
runs-on: ubuntu-latest
1312
steps:
14-
- uses: actions/checkout@v3
15-
- name: Log in to Docker Hub
16-
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
17-
with:
18-
registry: ghcr.io
19-
username: ${{ github.actor }}
20-
password: ${{ secrets.GITHUB_TOKEN }}
21-
- name: Build container
22-
run: docker build -t ghcr.io/diffcheckorg/diffcheck-windows:latest ${{ github.workspace }}/tests/dockerfiles/windows
23-
- name: Push
24-
run: docker push ghcr.io/diffcheckorg/diffcheck-windows:latest
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
2520

2621
configure-and-build:
2722
needs: build-container
@@ -32,16 +27,4 @@ jobs:
3227
- uses: actions/checkout@v4
3328
with:
3429
lfs: true
35-
submodules: true
36-
- name: Configure
37-
run: |
38-
git config --global --add safe.directory ${PWD}
39-
cmake -B build .
40-
- uses: actions/upload-artifact@v3
41-
if: ${{ failure() }}
42-
with:
43-
name: configure-artifacts
44-
path: build/
45-
retention-days: 1
46-
- name: Build
47-
run: cmake --build build
30+
submodules:

0 commit comments

Comments
 (0)