Skip to content

Commit a7dbc16

Browse files
committed
CI: add windows builder, upload artifacts
1 parent 2d23438 commit a7dbc16

File tree

3 files changed

+67
-23
lines changed

3 files changed

+67
-23
lines changed

.github/workflows/c-cpp.yml

-23
This file was deleted.

.github/workflows/debian-build.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Debian Build
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: install libgmp-dev
16+
run: |
17+
sudo apt-get update
18+
sudo apt-get install -y libgmp-dev
19+
- uses: actions/checkout@v4
20+
- name: make
21+
run: make
22+
- name: make test
23+
run: make test
24+
- uses: rlespinasse/github-slug-action@v4
25+
if: ${{ github.event_name != 'release' }}
26+
with:
27+
short-length: 6
28+
- uses: actions/upload-artifact@v4
29+
if: ${{ github.event_name != 'release' }}
30+
with:
31+
name: me7sum-${{ env.GITHUB_SHA_SHORT }}-debian
32+
path: |
33+
me7sum
34+
ME7Check_linux
35+
README.md

.github/workflows/windows-build.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Windows Build
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: windows-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: TheMrMilchmann/setup-msvc-dev@v3
17+
with:
18+
arch: x86
19+
- name: build
20+
run: nmake
21+
- uses: rlespinasse/github-slug-action@v4
22+
if: ${{ github.event_name != 'release' }}
23+
with:
24+
short-length: 6
25+
- uses: actions/upload-artifact@v4
26+
if: ${{ github.event_name != 'release' }}
27+
with:
28+
name: me7sum-${{ env.GITHUB_SHA_SHORT }}-win
29+
path: |
30+
me7sum.exe
31+
ME7Check.exe
32+
README.md

0 commit comments

Comments
 (0)