mfakto forum thread URL update #2
This file contains hidden or 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
| name: mfakto CI | |
| on: | |
| push: | |
| paths-ignore: | |
| - '**/*.txt' | |
| - 'COPYING' | |
| - '.gitignore' | |
| pull_request: | |
| paths-ignore: | |
| - '**/*.txt' | |
| - 'COPYING' | |
| - '.gitignore' | |
| types: | |
| - 'opened' | |
| - 'reopened' | |
| - 'synchronize' | |
| - 'ready_for_review' | |
| jobs: | |
| Linux: | |
| name: Linux | |
| runs-on: ubuntu-24.04 | |
| env: | |
| CC: gcc | |
| CPP: g++ | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get install -y ocl-icd-opencl-dev pocl-opencl-icd | |
| - name: Build | |
| run: | | |
| make -C src -O -j "$(nproc)" CC=${CC} CPP=${CPP} | |
| - name: Test | |
| run: | | |
| ./mfakto -d 11 | |
| - name: Upload build artifacts | |
| 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 artifacts and release assets | |
| 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: Release | |
| uses: softprops/action-gh-release@v2 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| files: | | |
| mfakto-linux64.tar.bz2 | |
| WindowsMSVC: | |
| name: Windows MSVC | |
| runs-on: windows-2022 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ilammy/msvc-dev-cmd@v1 | |
| - name: Install dependencies | |
| run: | | |
| vcpkg integrate install --vcpkg-root=c:\vcpkg | |
| - name: Build | |
| run: | | |
| msbuild mfaktoVS12.vcxproj /property:Configuration=Release | |
| - name: Create artifacts and release assets | |
| run: | | |
| Copy-Item -Path Changelog-mfakto.txt, COPYING, README-SpecialVersions.txt, README.txt, todo.txt -Destination x64/Release/ | |
| Compress-Archive -DestinationPath mfakto-windows-msvc.zip -CompressionLevel Optimal -Path x64/Release/* | |
| - name: Upload build artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: mfakto-windows-msvc | |
| path: x64/Release/ | |
| - name: Release | |
| uses: softprops/action-gh-release@v2 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| files: | | |
| mfakto-windows-msvc.zip | |
| WindowsMSYS2: | |
| name: Windows MSYS2 | |
| runs-on: windows-2022 | |
| env: | |
| CC: gcc | |
| CPP: g++ | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Configure paths | |
| run: | | |
| echo "C:\msys64\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
| echo "C:\msys64\usr\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
| - name: Install dependencies | |
| run: | | |
| pacman -S --needed --noconfirm mingw-w64-x86_64-opencl-icd mingw-w64-x86_64-opencl-headers | |
| - 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 artifacts | |
| 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 artifacts and release assets | |
| 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: Release | |
| uses: softprops/action-gh-release@v2 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| files: | | |
| mfakto-windows-msys2.zip | |
| macOS: | |
| name: macOS | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [macos-13, macos-14] | |
| fail-fast: false | |
| env: | |
| CC: clang | |
| CPP: clang++ | |
| # needed for Homebrew 4.6.4 and above | |
| HOMEBREW_DEVELOPER: '1' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # - name: Install dependencies | |
| # run: | | |
| # brew install pocl | |
| # workaround for PoCL 7.0[.x] issues - see https://github.com/actions/runner-images/issues/12775#issuecomment-3226624291 | |
| - name: Install PoCL 6.0.1 | |
| run: | | |
| pocl_commit="165dae39781a8150f265d2fae6ea036964dbaad8" | |
| pocl_rb_link="https://raw.githubusercontent.com/Homebrew/homebrew-core/$pocl_commit/Formula/p/pocl.rb" | |
| mkdir -p /tmp/pocl | |
| curl -fsSL "$pocl_rb_link" -o /tmp/pocl/pocl.rb | |
| brew install --formula /tmp/pocl/pocl.rb | |
| - name: Build with PoCL | |
| run: | | |
| make -C src -j "$(sysctl -n hw.ncpu)" CC=${CC} CPP=${CPP} AMD_APP_INCLUDE="$(pkg-config --cflags pocl)" AMD_APP_LIB="$(pkg-config --libs pocl)" | |
| - name: Test | |
| run: | | |
| ./mfakto -d 11 | |
| - name: Clean up build | |
| run: | | |
| make -C src clean | |
| - name: Build for native OpenCL | |
| run: | | |
| make -C src -j "$(sysctl -n hw.ncpu)" CC=${CC} CPP=${CPP} | |
| - name: Upload build artifacts | |
| 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 artifacts and release assets | |
| 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: Release | |
| uses: softprops/action-gh-release@v2 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| files: | | |
| mfakto-${{ matrix.os }}.tar.bz2 |