Skip to content

Commit

Permalink
Removed building for macos in GitHub Action.
Browse files Browse the repository at this point in the history
  • Loading branch information
tx00100xt committed Sep 11, 2023
1 parent 79d36d8 commit 86aaf5f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 62 deletions.
61 changes: 0 additions & 61 deletions .github/workflows/cibuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -498,67 +498,6 @@ jobs:
name: SeriousSamClassicVk-${{ steps.date.outputs.time }}-bsd-amd64-bin.tar.xz
path: SeriousSamClassicVk-${{ steps.date.outputs.time }}-bsd-amd64-bin.tar.xz

build-macos-x64:
name: macOS ${{ matrix.Configuration }} ${{ matrix.Platform }}
runs-on: macos-12
strategy:
fail-fast: false
matrix:
Configuration: [Release]
Platform: [x64]
steps:
- uses: actions/checkout@v3

- name: Get current date
id: date
uses: Kaven-Universe/github-action-current-date-time@v1
with:
format: "YYYYMMDD"

- name: Show current date
run: |
echo "${{ steps.date.outputs.time }}"
- name: Build on macOS
run: |
uname -a
brew install bison flex sdl2 libogg libvorbis zlib-ng cmake vulkan-loader vulkan-headers
cd ${{github.workspace}}
mkdir {x64,x64/SamTFE,x64/SamTFE/Mods,x64/SamTFE/Mods/XPLUS,x64/SamTSE,x64/SamTSE/Mods,x64/SamTSE/Mods/XPLUS}
echo "*** Build ***"
cd ${{github.workspace}}/SamTFE/Sources
awk '{sub("-march=native","-mtune=generic")}1' CMakeLists.txt > CmakeTemp.txt && mv CmakeTemp.txt CMakeLists.txt
cat CMakeLists.txt | grep mtune
cd ${{github.workspace}}/SamTSE/Sources
awk '{sub("-march=native","-mtune=generic")}1' CMakeLists.txt > CmakeTemp.txt && mv CmakeTemp.txt CMakeLists.txt
cat CMakeLists.txt | grep mtune
cd ${{github.workspace}}
cmake -B ${{github.workspace}}/build-x64 -DCMAKE_BUILD_TYPE=${{ matrix.Configuration }}
cd ${{github.workspace}}/build-x64
make -j$(sysctl -n hw.ncpu || echo 4)
make install
cd ${{github.workspace}}
cmake -B ${{github.workspace}}/build-x64-xplus -DCMAKE_BUILD_TYPE=${{ matrix.Configuration }} -DXPLUS=TRUE
cd ${{github.workspace}}/build-x64-xplus
make -j$(sysctl -n hw.ncpu || echo 4)
make install
echo "*** Prepare Archive ***"
cd ${{github.workspace}}
mv -f ${{github.workspace}}/SamTFE/Bin ${{github.workspace}}/x64/SamTFE
mv -f ${{github.workspace}}/SamTSE/Bin ${{github.workspace}}/x64/SamTSE
mv -f ${{github.workspace}}/SamTFE/Mods/XPLUS/Bin ${{github.workspace}}/x64/SamTFE/Mods/XPLUS
mv -f ${{github.workspace}}/SamTSE/Mods/XPLUS/Bin ${{github.workspace}}/x64/SamTSE/Mods/XPLUS
cp -vfr {SamTFE/SE1_10b.gro,SamTFE/ModEXT.txt} x64/SamTFE
cp -vfr {SamTSE/SE1_10b.gro,SamTSE/ModEXT.txt} x64/SamTSE
echo "*** Create archive ***"
XZ_DEFAULTS="-T 10" tar --use-compress-program=xz -cpvf SeriousSamClassicVk-${{ steps.date.outputs.time }}-macos-amd64-bin.tar.xz x64
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: SeriousSamClassicVk-${{ steps.date.outputs.time }}-macos-amd64-bin.tar.xz
path: SeriousSamClassicVk-${{ steps.date.outputs.time }}-macos-amd64-bin.tar.xz

build-raspios-armv7l:
name: RPi OS Lite ${{ matrix.Configuration }} ${{ matrix.arch }}
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ Supported OS
### Build status
|CI|Platform|Compiler|Configurations|Platforms|Status|
|---|---|---|---|---|---|
|GitHub Actions|Windows, Ubuntu, FreeBSD, Alpine, Raspberry PI OS Lite, macOS|MSVC, GCC, Clang|Release|x86, x64, armv7l, aarch64, riscv64, ppc64le, s390x|![GitHub Actions Build Status](https://github.com/tx00100xt/SeriousSamClassic-VK/actions/workflows/cibuild.yml/badge.svg)
|GitHub Actions|Windows, Ubuntu, FreeBSD, Alpine, Raspberry PI OS Lite|MSVC, GCC, Clang|Release|x86, x64, armv7l, aarch64, riscv64, ppc64le, s390x|![GitHub Actions Build Status](https://github.com/tx00100xt/SeriousSamClassic-VK/actions/workflows/cibuild.yml/badge.svg)

You can download a the automatically build based on the latest commit.
To do this, go to the [Actions tab], select the top workflows, and then Artifacts.
Expand Down

0 comments on commit 86aaf5f

Please sign in to comment.