mirror of
https://github.com/typesense/typesense.git
synced 2025-05-28 09:46:05 +08:00
Cancel multiple runs
This commit is contained in:
parent
df144f5414
commit
7cac0f4f54
10
.github/workflows/tests.yml
vendored
10
.github/workflows/tests.yml
vendored
@ -2,6 +2,12 @@ name: tests
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
# Cancel previous running if a new push is made
|
||||
# Source: https://stackoverflow.com/a/72408109/123545
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build_and_test:
|
||||
runs-on: ubuntu-latest
|
||||
@ -15,7 +21,7 @@ jobs:
|
||||
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
|
||||
sudo apt-get update
|
||||
|
||||
sudo apt install -y g++-10 make git zlib1g-dev m4
|
||||
sudo apt-get install -y g++-10 make git zlib1g-dev m4
|
||||
|
||||
# Define the compiler
|
||||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 30
|
||||
@ -29,7 +35,7 @@ jobs:
|
||||
|
||||
# Install CUDA
|
||||
|
||||
wget https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run
|
||||
wget --no-verbose https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run
|
||||
bash cuda_11.8.0_520.61.05_linux.run
|
||||
rm cuda_11.8.0_520.61.05_linux.run
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user