Update README.md #53
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: Build | |
| on: [push] | |
| jobs: | |
| Build-Ubuntu: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - run: sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test | |
| - run: sudo apt install -y cmake gcc-12 g++-12 ninja-build | |
| - run: sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 10 | |
| - run: sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 10 | |
| - run: mkdir build && cd build && cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release && ninja | |
| - name: Archive artifacts | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: autogit-ubuntu | |
| path: build/bin/autogit | |
| Build-macOS: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - run: brew install cmake ninja | |
| - run: mkdir build && cd build && cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release && ninja | |
| - name: Archive artifacts | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: autogit-macos | |
| path: build/bin/autogit | |
| Build-Windows: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: TheMrMilchmann/setup-msvc-dev@v4 | |
| with: | |
| arch: x64 | |
| - name: Install Ninja | |
| run: choco install ninja -y | |
| - name: Configure and build | |
| run: | | |
| cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -B build -S . | |
| ninja -C build | |
| - name: Archive artifacts | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: autogit-windows | |
| path: build/bin/release/autogit.exe |