Skip to content

Commit 596d63a

Browse files
authored
Update build.yml
1 parent be660f2 commit 596d63a

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,6 @@ jobs:
1212
steps:
1313
- name: Checkout repository
1414
uses: actions/checkout@v4
15-
with:
16-
# Явно указываем использовать LF окончания
17-
fetch-depth: 0 # Опционально: получаем всю историю коммитов
18-
19-
- name: Configure Git line endings
20-
run: |
21-
git config --global core.autocrlf false
22-
git config --global core.eol lf
2315

2416
- name: Install Cygwin (Windows)
2517
if: matrix.os == 'windows-latest'
@@ -29,19 +21,26 @@ jobs:
2921
packages: gcc-core make libargp-devel
3022
install-dir: C:/cygwin64
3123

32-
- name: Setup environment
24+
- name: Setup environment (Windows)
25+
if: matrix.os == 'windows-latest'
3326
shell: bash
3427
run: |
35-
if [[ "${{ matrix.os }}" == "windows-latest" ]]; then
36-
export PATH="/cygdrive/c/cygwin64/bin:$PATH"
37-
else
38-
sudo apt-get update
39-
sudo apt-get install -y libudev-dev libparted-dev
40-
fi
28+
echo "Cygwin path: /cygdrive/c/cygwin64/bin"
29+
export PATH="/cygdrive/c/cygwin64/bin:$PATH"
30+
gcc --version
31+
make --version
32+
33+
- name: Setup environment (Linux)
34+
if: matrix.os == 'ubuntu-latest'
35+
shell: bash
36+
run: |
37+
sudo apt-get update
38+
sudo apt-get install -y libudev-dev libparted-dev
4139
4240
- name: Build
41+
shell: bash
4342
run: |
44-
if [[ "${{ matrix.os }}" == "windows-latest" ]]; then
43+
if [ "${{ matrix.os }}" = "windows-latest" ]; then
4544
make CC="gcc" EXTRA_CFLAGS="-DWINDOWS_COMPAT" all
4645
else
4746
make all

0 commit comments

Comments
 (0)