Unnecessary duplicate header included and catch time case #47
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: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build-linux: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install dependencies | |
| run: sudo apt-get update && sudo apt-get install -y meson ninja-build | |
| - name: Build | |
| run: make | |
| - name: Run tests | |
| run: make test | |
| - name: Run asan tests | |
| run: make test2 | |
| build-macos: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install dependencies | |
| run: brew install meson ninja | |
| - name: Build | |
| run: make | |
| - name: Run tests | |
| run: make -C test | |
| test-make: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install dependencies (Linux) | |
| if: matrix.os == 'ubuntu-latest' | |
| run: sudo apt-get update && sudo apt-get install -y meson ninja-build | |
| - name: Install dependencies (macOS) | |
| if: matrix.os == 'macos-latest' | |
| run: brew install meson ninja | |
| - name: Install dependencies (Windows) | |
| if: matrix.os == 'windows-latest' | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install meson ninja | |
| - name: Test make build | |
| if: matrix.os != 'windows-latest' | |
| run: | | |
| make clean | |
| make | |
| ls -la mzip | |
| ./mzip --help | |
| - name: Test meson build (Windows) | |
| if: matrix.os == 'windows-latest' | |
| run: | | |
| meson setup build --backend=ninja | |
| ninja -C build | |
| copy build\mzip.exe mzip.exe | |
| dir mzip.exe | |
| .\mzip.exe --help | |
| release: | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| name: linux | |
| ext: "" | |
| - os: macos-latest | |
| name: macos | |
| ext: "" | |
| - os: windows-latest | |
| name: windows | |
| ext: .exe | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install dependencies (Linux) | |
| if: matrix.os == 'ubuntu-latest' | |
| run: sudo apt-get update && sudo apt-get install -y meson ninja-build | |
| - name: Install dependencies (macOS) | |
| if: matrix.os == 'macos-latest' | |
| run: brew install meson ninja | |
| - name: Install dependencies (Windows) | |
| if: matrix.os == 'windows-latest' | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install meson ninja | |
| - name: Build (Linux/macOS) | |
| if: matrix.os != 'windows-latest' | |
| run: make | |
| - name: Build (Windows) | |
| if: matrix.os == 'windows-latest' | |
| run: | | |
| meson setup build --backend=vs | |
| ninja -C build | |
| - name: Upload Release Asset | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| files: mzip${{ matrix.ext }} | |
| name: mzip-${{ matrix.name }}${{ matrix.ext }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |