Skip to content

Commit def114b

Browse files
authored
Merge pull request #7 from joehoyle/test
Run tests as part of build
2 parents 1b8dc40 + 3342673 commit def114b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
- run: mkdir ~/.cargo-registry
6565

6666
- name: Build
67-
run: docker run --rm -v ~/.cargo-registry:/usr/local/cargo/registry -v $PWD:/code localhost:5000/phpv8js-build:latest bash -c 'rustup target add ${{ matrix.target }} ; cargo build --release --target ${{ matrix.target }}'
67+
run: docker run --rm -v ~/.cargo-registry:/usr/local/cargo/registry -v $PWD:/code localhost:5000/phpv8js-build:latest bash -c 'rustup target add ${{ matrix.target }} ; cargo test --target ${{ matrix.target }} && cargo build --release --target ${{ matrix.target }}'
6868

6969
- name: Rename file
7070
run: cp target/${{ matrix.target }}/release/libv8js.so php${{ matrix.php-version }}-${{ matrix.target }}-libv8js.so
@@ -118,10 +118,10 @@ jobs:
118118
override: true
119119
- name: Setup PHP version
120120
run: brew install php@${{ matrix.php-version }} && brew unlink php && brew link --force php@${{ matrix.php-version }}
121+
121122
- name: Build
122123
uses: actions-rs/cargo@v1
123124
with:
124-
use-cross: ${{ matrix.cross }}
125125
command: build
126126
args: --release --target ${{ matrix.target }} --lib
127127

0 commit comments

Comments
 (0)