Skip to content

Commit daaad84

Browse files
committed
Clean up redundant actions steps
1 parent 8f35350 commit daaad84

File tree

1 file changed

+2
-24
lines changed

1 file changed

+2
-24
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -78,35 +78,13 @@ jobs:
7878
mkdir -p $HOME/.local/opt/re2c
7979
8080
echo "::set-env name=RE2C_VERSION::${{ matrix.re2c }}"
81-
echo "::set-env name=PHP_VERNUM::$(php-config --vernum)"
82-
echo "::set-env name=PHP_VERSION_MAJOR::$(php-config --version | cut -d'.' -f1,2)"
83-
echo "::set-env name=PHP_VERSION_SHORT::$(php-config --version | cut -d'.' -f1,2,3)"
8481
echo "::set-env name=PATH::$PATH:$HOME/bin:$(brew --prefix lcov)/bin"
82+
echo "::set-env name=MAKEFLAGS::-j$(getconf _NPROCESSORS_ONLN)"
8583
8684
- name: Setup Core Dump (Linux)
8785
if: runner.os == 'Linux'
8886
run: echo '/tmp/core.%e.%p.%t' | sudo tee /proc/sys/kernel/core_pattern
8987

90-
- uses: actions/cache@v1
91-
if: runner.os != 'Windows'
92-
name: Setup re2c source cache
93-
id: re2c-source-cache
94-
with:
95-
path: ~/.cache/re2c
96-
key: ${{ runner.os }}-re2c-source-cache-${{ hashFiles('**/.ci/install-re2c.sh') }}
97-
restore-keys: |
98-
${{ runner.os }}-re2c-source-cache-
99-
100-
- uses: actions/cache@v1
101-
if: runner.os != 'Windows'
102-
name: Setup re2c binary cache
103-
id: re2c-binary-cache
104-
with:
105-
path: ~/.local/opt/re2c
106-
key: ${{ runner.os }}-re2c-binary-cache-${{ hashFiles('**/.ci/install-re2c.sh') }}
107-
restore-keys: |
108-
${{ runner.os }}-re2c-binary-cache-
109-
11088
- name: Install re2c ${{ matrix.re2c }}
11189
if: runner.os != 'Windows'
11290
run: .ci/install-re2c.sh
@@ -127,7 +105,7 @@ jobs:
127105

128106
- name: Run Tests
129107
if: runner.os != 'Windows'
130-
run: make -j$(getconf _NPROCESSORS_ONLN) test NO_INTERACTION=1 REPORT_EXIT_STATUS=1 TEST_PHP_ARGS=${{ matrix.test-args }}
108+
run: make test NO_INTERACTION=1 REPORT_EXIT_STATUS=1
131109

132110
- name: Print failures
133111
if: failure()

0 commit comments

Comments
 (0)