From 082a525e3be210019686f4f95d897d0f60d314c3 Mon Sep 17 00:00:00 2001 From: ghorsington Date: Sat, 26 Mar 2022 21:44:56 +0200 Subject: [PATCH] CakeBuild: Revert "task" -> "target" CakeBuild always expects main task to be defined in "target" argument, see https://cakebuild.net/docs/writing-builds/running-targets --- .github/workflows/build_be.yml | 2 +- .github/workflows/build_pr.yml | 2 +- BUILDING.md | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build_be.yml b/.github/workflows/build_be.yml index 96ed183..7631770 100644 --- a/.github/workflows/build_be.yml +++ b/.github/workflows/build_be.yml @@ -44,7 +44,7 @@ jobs: env: BEPIN_DEV_NUGET_KEY: ${{ secrets.BEPIN_DEV_NUGET_KEY }} run: | - ./build.sh --task=Pack --bleeding_edge=${{ steps.be_status.outputs.is_be == 'true' }} --build_id=${{ steps.info.outputs.build_id || 0 }} --last_build_commit=\"${{ steps.last_successful_commit.outputs.commit_hash }}\" --nuget_push_key=\"${BEPIN_DEV_NUGET_KEY}\" + ./build.sh --target=Pack --bleeding_edge=${{ steps.be_status.outputs.is_be == 'true' }} --build_id=${{ steps.info.outputs.build_id || 0 }} --last_build_commit=\"${{ steps.last_successful_commit.outputs.commit_hash }}\" --nuget_push_key=\"${BEPIN_DEV_NUGET_KEY}\" - name: Upload to BepisBuilds env: BEPISBUILDS_HOST: ${{ secrets.BEPISBUILDS_HOST }} diff --git a/.github/workflows/build_pr.yml b/.github/workflows/build_pr.yml index 148dd1d..d6af703 100644 --- a/.github/workflows/build_pr.yml +++ b/.github/workflows/build_pr.yml @@ -15,7 +15,7 @@ jobs: dotnet-version: "6.0.x" - name: Build run: | - ./build.sh --task=Pack + ./build.sh --target=Pack - name: Upload Artifacts uses: actions/upload-artifact@v2.2.4 with: diff --git a/BUILDING.md b/BUILDING.md index c4706f8..34fda2b 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -14,7 +14,7 @@ Clone this repository via `git clone https://github.com/BepInEx/BepInEx.git`. After that, run in the repository directory ```bat -build.bat --task=Build +build.bat --target=Build ``` ### Windows (PowerShell) @@ -23,7 +23,7 @@ Clone this repository via `git clone https://github.com/BepInEx/BepInEx.git`. After that, run in the repository directory ```ps -./build.ps1 --task=Build +./build.ps1 --target=Build ``` Make sure you have the execution policy set to enable running scripts. @@ -34,14 +34,14 @@ Clone this repository via `git clone https://github.com/BepInEx/BepInEx.git`. After that, run in the repository directory ```sh -./build.sh --task=Build +./build.sh --target=Build ``` -### Additional build tasks +### Additional build targets -The build script provides the following build tasks (that you can pass via the `task` parameter) +The build script provides the following build targets (that you can pass via the `target` parameter) -| Task | Description | +| Target | Description | | ------------- | ------------------------------------------------------------------------ | | `Build` | Pulls dependencies and builds BepInEx | | `MakeDist` | Runs `Build` and creates distributable packages into `bin/dist` folder |