Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build artifact and release assets #13

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 90 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,31 @@ jobs:
- name: Test
run: |
./mfakto -d 11
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: mfakto-linux64
path: |
*.cl
Changelog-mfakto.txt
COPYING
datatypes.h
mfakto
mfakto.ini
README-SpecialVersions.txt
README.txt
tf_debug.h
todo.txt
- name: Create artifact and release asset
if: startsWith(github.ref, 'refs/tags/')
run: |
tar cvjf mfakto-linux64.tar.bz2 *.cl Changelog-mfakto.txt COPYING datatypes.h mfakto mfakto.ini README-SpecialVersions.txt README.txt tf_debug.h todo.txt
- name: Upload release assets on release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
mfakto-linux64.tar.bz2

WindowsMSVC:
name: Windows MSVC
Expand All @@ -41,6 +66,21 @@ jobs:
- name: Build
run: |
msbuild mfaktoVS12.vcxproj /property:OCL_ROOT="$env:OCL_ROOT"
- name: Create artifact and release asset
run: |
Copy-Item -Path Changelog-mfakto.txt, COPYING, README-SpecialVersions.txt, README.txt, todo.txt, src/mfakto.ini -Destination x64/Debug/
Compress-Archive -DestinationPath mfakto-windows-msvc.zip -CompressionLevel Optimal -Path x64/Debug/*
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: mfakto-windows-msvc
path: x64/Debug/
- name: Upload release asset on release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
mfakto-windows-msvc.zip

WindowsMSYS2:
name: Windows MSYS2
Expand All @@ -60,6 +100,31 @@ jobs:
- name: Build
run: |
make -C src -O -j $env:NUMBER_OF_PROCESSORS CC=$env:CC CPP=$env:CPP AMD_APP_INCLUDE="-IC:\msys64\mingw64\include" AMD_APP_LIB="-LC:\msys64\mingw64\lib"
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: mfakto-windows-msys2
path: |
*.cl
Changelog-mfakto.txt
COPYING
datatypes.h
mfakto.exe
mfakto.ini
README-SpecialVersions.txt
README.txt
tf_debug.h
todo.txt
- name: Create artifact and release asset
if: startsWith(github.ref, 'refs/tags/')
run: |
Compress-Archive -DestinationPath mfakto-windows-msys2.zip -CompressionLevel Optimal -Path *.cl, Changelog-mfakto.txt, COPYING, datatypes.h, mfakto.exe, mfakto.ini, README-SpecialVersions.txt, README.txt, tf_debug.h, todo.txt
- name: Upload release assets on release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
mfakto-windows-msys2.zip

MacOS:
name: MacOS
Expand All @@ -82,3 +147,28 @@ jobs:
- name: Test
run: |
./mfakto -d 11
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: mfakto-${{ matrix.os }}
path: |
*.cl
Changelog-mfakto.txt
COPYING
datatypes.h
mfakto
mfakto.ini
README-SpecialVersions.txt
README.txt
tf_debug.h
todo.txt
- name: Create artifact and release asset
if: startsWith(github.ref, 'refs/tags/')
run: |
tar cvjf mfakto-${{ matrix.os }}.tar.bz2 *.cl Changelog-mfakto.txt COPYING datatypes.h mfakto mfakto.ini README-SpecialVersions.txt README.txt tf_debug.h todo.txt
- name: Upload release assets on release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
mfakto-${{ matrix.os }}.tar.bz2