mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
CI: simplified using working directory
This commit is contained in:
parent
b969347587
commit
8d338a1999
1 changed files with 8 additions and 10 deletions
18
.github/workflows/main.yml
vendored
18
.github/workflows/main.yml
vendored
|
@ -64,10 +64,6 @@ jobs:
|
|||
CC: gcc
|
||||
CXX: g++
|
||||
|
||||
defaults:
|
||||
run:
|
||||
shell: ${{ matrix.shell || 'bash' }}
|
||||
|
||||
env:
|
||||
SRC: ${{ github.workspace }}/source
|
||||
DEP_SRC: ${{ github.workspace }}/dependency_source
|
||||
|
@ -81,6 +77,11 @@ jobs:
|
|||
# https://www.msys2.org/wiki/Porting/#filesystem-namespaces
|
||||
MSYS2_ARG_CONV_EXCL: --prefix=
|
||||
|
||||
defaults:
|
||||
run:
|
||||
shell: ${{ matrix.shell || 'bash' }}
|
||||
working-directory: ${{ env.SRC }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
|
@ -134,18 +135,16 @@ jobs:
|
|||
if: runner.os == 'Windows'
|
||||
run: |
|
||||
# convert Windows paths to Unix paths for MSYS2 shell
|
||||
echo "SRC=`cygpath -u $SRC`" >> $GITHUB_ENV
|
||||
echo "DEP_SRC=`cygpath -u $DEP_SRC`" >> $GITHUB_ENV
|
||||
echo "DEP_ROOT=`cygpath -u $DEP_ROOT`" >> $GITHUB_ENV
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
$SRC/.github/scripts/dependencies.sh
|
||||
./.github/scripts/dependencies.sh
|
||||
|
||||
- name: Build source
|
||||
run: |
|
||||
. $DEP_ROOT/share/GNUstep/Makefiles/GNUstep.sh
|
||||
cd $SRC
|
||||
./configure $CONFIGURE_OPTS
|
||||
make && make install
|
||||
|
||||
|
@ -153,7 +152,6 @@ jobs:
|
|||
continue-on-error: ${{ matrix.allow-test-failures || false }}
|
||||
run: |
|
||||
. $DEP_ROOT/share/GNUstep/Makefiles/GNUstep.sh
|
||||
cd $SRC
|
||||
make check
|
||||
|
||||
- name: Upload logs
|
||||
|
@ -162,5 +160,5 @@ jobs:
|
|||
with:
|
||||
name: Logs - ${{ matrix.name }}
|
||||
path: |
|
||||
source/config.log
|
||||
source/Tests/tests.log
|
||||
$SRC/config.log
|
||||
$SRC/Tests/tests.log
|
||||
|
|
Loading…
Reference in a new issue