diff --git a/.github/workflows/android-clang.yaml b/.github/workflows/android-clang.yaml index 0462048..fa69281 100644 --- a/.github/workflows/android-clang.yaml +++ b/.github/workflows/android-clang.yaml @@ -2,11 +2,9 @@ name: Build for Android with Clang using the NDK on: workflow_dispatch: - inputs: - ref: - description: 'Branch or commit to build' - required: true - default: 'main' + pull_request: + branches: + - main jobs: build: diff --git a/.github/workflows/linux-clang.yaml b/.github/workflows/linux-clang.yaml index 9167361..6e7dd75 100644 --- a/.github/workflows/linux-clang.yaml +++ b/.github/workflows/linux-clang.yaml @@ -2,11 +2,9 @@ name: Build for Linux with Clang on: workflow_dispatch: - inputs: - ref: - description: 'Branch or commit to build' - required: true - default: 'main' + pull_request: + branches: + - main jobs: build: @@ -16,9 +14,6 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Set up Clang - run: sudo apt-get install -y clang - - name: Build with Clang run: | mkdir -p build diff --git a/.github/workflows/linux-gcc.yaml b/.github/workflows/linux-gcc.yaml index 73cab9a..145fab2 100644 --- a/.github/workflows/linux-gcc.yaml +++ b/.github/workflows/linux-gcc.yaml @@ -2,11 +2,9 @@ name: Build for Linux with GCC on: workflow_dispatch: - inputs: - ref: - description: 'Branch or commit to build' - required: true - default: 'main' + pull_request: + branches: + - main jobs: build: @@ -16,9 +14,6 @@ jobs: - name: Git checkout uses: actions/checkout@v4 - - name: Set up GCC - run: sudo apt-get install -y build-essential - - name: Build with GCC run: | mkdir -p build