forked from 360trev/ME7Sum
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #12: Add basic CI for linux and windows, move broken bins to br…
…oken so make test succeeds TODO: MacOS, generate tagged zip files on release
- Loading branch information
Showing
6 changed files
with
79 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Debian Build | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: install libgmp-dev | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libgmp-dev | ||
- uses: actions/checkout@v4 | ||
- name: make | ||
run: make | ||
- name: make test | ||
run: make test | ||
- uses: rlespinasse/github-slug-action@v4 | ||
if: ${{ github.event_name != 'release' }} | ||
with: | ||
short-length: 6 | ||
- uses: actions/upload-artifact@v4 | ||
if: ${{ github.event_name != 'release' }} | ||
with: | ||
name: me7sum-${{ env.GITHUB_SHA_SHORT }}-debian | ||
path: | | ||
me7sum | ||
ME7Check_linux | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Windows Build | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: TheMrMilchmann/setup-msvc-dev@v3 | ||
with: | ||
arch: x86 | ||
- name: build | ||
run: nmake | ||
- uses: rlespinasse/github-slug-action@v4 | ||
if: ${{ github.event_name != 'release' }} | ||
with: | ||
short-length: 6 | ||
- uses: actions/upload-artifact@v4 | ||
if: ${{ github.event_name != 'release' }} | ||
with: | ||
name: me7sum-${{ env.GITHUB_SHA_SHORT }}-win | ||
path: | | ||
me7sum.exe | ||
ME7Check.exe | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
#!/bin/sh | ||
|
||
rm -f err.log | ||
trap "rm -rf err.log" EXIT | ||
for i in bins/*.bin; do | ||
./me7sum -r $i.txt $i | grep -E '(ABORT|WARNING)' | ||
grep ERROR $i.txt | ||
./me7sum -r $i.txt $i | grep -E '(ABORT|WARNING)' >> err.log | ||
grep ERROR $i.txt >> err.log | ||
done | ||
|
||
cat err.log | ||
[ ! -s err.log ] |