From c06e8ccfb63e11314a2b8583b63de23fb059aacb Mon Sep 17 00:00:00 2001 From: abraunegg Date: Tue, 2 Aug 2022 16:59:45 +1000 Subject: [PATCH] Add Test Build Workflow (#2069) * Add GitHub Action to test build all pulls, re-introducing functionality lost after Travis CI functionality depreciation --- .github/workflows/testbuild.yaml | 37 ++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/testbuild.yaml diff --git a/.github/workflows/testbuild.yaml b/.github/workflows/testbuild.yaml new file mode 100644 index 00000000..708a135e --- /dev/null +++ b/.github/workflows/testbuild.yaml @@ -0,0 +1,37 @@ +name: Test Build + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Check out code from GitHub + uses: actions/checkout@v3 + with: + submodules: recursive + fetch-depth: 0 + + - name: Install build-essential + run: sudo apt install -y build-essential + + - name: Install build-dependencies + run: sudo apt install -y libcurl4-openssl-dev libsqlite3-dev pkg-config git curl ldc + + - name: Configure + run: ./configure + + - name: Compile + run: make clean; make; + + - name: Install + run: sudo make install + + - name: Run + run: onedrive --version \ No newline at end of file