From a7dbc161b36bc191db9715f3b04aa7d10093cb7f Mon Sep 17 00:00:00 2001 From: Nye Liu Date: Sun, 27 Oct 2024 00:27:59 -0700 Subject: [PATCH] CI: add windows builder, upload artifacts --- .github/workflows/c-cpp.yml | 23 ------------------- .github/workflows/debian-build.yml | 35 +++++++++++++++++++++++++++++ .github/workflows/windows-build.yml | 32 ++++++++++++++++++++++++++ 3 files changed, 67 insertions(+), 23 deletions(-) delete mode 100644 .github/workflows/c-cpp.yml create mode 100644 .github/workflows/debian-build.yml create mode 100644 .github/workflows/windows-build.yml diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml deleted file mode 100644 index 4be18d6..0000000 --- a/.github/workflows/c-cpp.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: C/C++ CI - -on: - push: -# branches: [ $default-branch ] - pull_request: - branches: [ $default-branch ] - -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 diff --git a/.github/workflows/debian-build.yml b/.github/workflows/debian-build.yml new file mode 100644 index 0000000..9f909b8 --- /dev/null +++ b/.github/workflows/debian-build.yml @@ -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 diff --git a/.github/workflows/windows-build.yml b/.github/workflows/windows-build.yml new file mode 100644 index 0000000..0992261 --- /dev/null +++ b/.github/workflows/windows-build.yml @@ -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