Create .gitattributes #20
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: F3 CI/CD | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| lf: true # Принудительно используем LF окончания строк | |
| - name: Install Cygwin (Windows) | |
| if: matrix.os == 'windows-latest' | |
| uses: cygwin/cygwin-install-action@v2 | |
| with: | |
| platform: x86_64 | |
| packages: gcc-core make libargp-devel | |
| install-dir: C:/cygwin64 | |
| - name: Setup environment | |
| shell: bash | |
| run: | | |
| if [[ "${{ matrix.os }}" == "windows-latest" ]]; then | |
| export PATH="/cygdrive/c/cygwin64/bin:$PATH" | |
| elif [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then | |
| sudo apt-get update | |
| sudo apt-get install -y libudev-dev libparted-dev | |
| fi | |
| - name: Build | |
| run: | | |
| if [[ "${{ matrix.os }}" == "windows-latest" ]]; then | |
| make CC="gcc" EXTRA_CFLAGS="-DWINDOWS_COMPAT" all | |
| else | |
| make all | |
| fi | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: f3-${{ matrix.os }} | |
| path: | | |
| *.exe | |
| f3* |