From d9b5cabc2b4592d74caf399e0e6279c6abacb68a Mon Sep 17 00:00:00 2001 From: Reion Wong Date: Sat, 24 Jul 2021 15:03:47 +0800 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1657e6c..37f9eff 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,16 +6,8 @@ on: pull_request: branches: [ main ] -env: - # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) - BUILD_TYPE: Release - jobs: build: - # The CMake configure and build commands are platform agnostic and should work equally - # well on Windows or Mac. You can convert this to a matrix build if you need - # cross-platform coverage. - # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix runs-on: ubuntu-latest steps: @@ -23,13 +15,13 @@ jobs: uses: actions/checkout@v2 - name: Update repository - run: apt-get update -y + run: sudo apt-get update -y - name: Install the basic dev packages - run: apt-get install -y equivs curl git devscripts lintian build-essential automake autotools-dev cmake g++ + run: sudo apt-get install -y equivs curl git devscripts lintian build-essential automake autotools-dev cmake g++ - name: Install build dependencies - run: mk-build-deps -i -t "apt-get --yes" -r + run: sudo mk-build-deps -i -t "apt-get --yes" -r - name: Build run: mkdir build; cd build; cmake .. ; make -j$(nproc);