From 2688cf7a276b1bba097cdf1f4ed0738e2c541bfc Mon Sep 17 00:00:00 2001 From: deniskovalchuk Date: Sat, 22 Jul 2023 20:20:23 +0300 Subject: [PATCH 1/5] Run GitHub actions for all branches --- .github/workflows/linux.yml | 4 ++-- .github/workflows/macos.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 660d122f..47d1dfd0 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -2,9 +2,9 @@ name: Linux on: push: - branches: [ "master" ] + branches: [ * ] pull_request: - branches: [ "master" ] + branches: [ * ] jobs: build: diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index d1f869ac..59db8610 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -2,9 +2,9 @@ name: macOS on: push: - branches: [ "master" ] + branches: [ * ] pull_request: - branches: [ "master" ] + branches: [ * ] jobs: build: From a1c616c53fd46a47ff723fcdf7e8b7af631700c1 Mon Sep 17 00:00:00 2001 From: deniskovalchuk Date: Sat, 22 Jul 2023 20:22:29 +0300 Subject: [PATCH 2/5] Add #!/bin/bash headers to *.sh files --- scripts/build-debug.sh | 2 ++ scripts/build-release.sh | 2 ++ scripts/clean.sh | 2 ++ 3 files changed, 6 insertions(+) diff --git a/scripts/build-debug.sh b/scripts/build-debug.sh index c18e0a65..953fce0f 100755 --- a/scripts/build-debug.sh +++ b/scripts/build-debug.sh @@ -1,3 +1,5 @@ +#!/bin/bash + BUILD_DIR=build/debug mkdir -p ${BUILD_DIR} diff --git a/scripts/build-release.sh b/scripts/build-release.sh index 901665d5..a6439b66 100755 --- a/scripts/build-release.sh +++ b/scripts/build-release.sh @@ -1,3 +1,5 @@ +#!/bin/bash + BUILD_DIR=build/release mkdir -p ${BUILD_DIR} diff --git a/scripts/clean.sh b/scripts/clean.sh index 18fe6479..d26d49b8 100755 --- a/scripts/clean.sh +++ b/scripts/clean.sh @@ -1,3 +1,5 @@ +#!/bin/bash + BASE_BUILD_DIR=build rm -rf ${BASE_BUILD_DIR} \ No newline at end of file From 1a444508d337f0de8c6f708d0a2792f4b4d8d1a0 Mon Sep 17 00:00:00 2001 From: deniskovalchuk Date: Sat, 22 Jul 2023 20:25:53 +0300 Subject: [PATCH 3/5] Fix syntax error --- .github/workflows/linux.yml | 6 ++++-- .github/workflows/macos.yml | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 47d1dfd0..3593851f 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -2,9 +2,11 @@ name: Linux on: push: - branches: [ * ] + branches: + - * pull_request: - branches: [ * ] + branches: + - * jobs: build: diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 59db8610..8cb63a9a 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -2,9 +2,11 @@ name: macOS on: push: - branches: [ * ] + branches: + - * pull_request: - branches: [ * ] + branches: + - * jobs: build: From 29b7fcec37c6cd0cd93eb4d53ef9580a4d97f9a9 Mon Sep 17 00:00:00 2001 From: deniskovalchuk Date: Sat, 22 Jul 2023 20:32:05 +0300 Subject: [PATCH 4/5] Try to use another syntax for running GitHub Actions for all branches --- .github/workflows/linux.yml | 4 ---- .github/workflows/macos.yml | 4 ---- 2 files changed, 8 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 3593851f..d5020dda 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -2,11 +2,7 @@ name: Linux on: push: - branches: - - * pull_request: - branches: - - * jobs: build: diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 8cb63a9a..0f0aa516 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -2,11 +2,7 @@ name: macOS on: push: - branches: - - * pull_request: - branches: - - * jobs: build: From d4d9adf2efdc53bb8e6c19ee2b630af04bdc8722 Mon Sep 17 00:00:00 2001 From: deniskovalchuk Date: Sat, 22 Jul 2023 21:36:32 +0300 Subject: [PATCH 5/5] Try to use another syntax for running GitHub Actions for all branches --- .github/workflows/linux.yml | 4 ++++ .github/workflows/macos.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index d5020dda..eb83e650 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -2,7 +2,11 @@ name: Linux on: push: + branches: + - '*' pull_request: + branches: + - '*' jobs: build: diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 0f0aa516..88117a0d 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -2,7 +2,11 @@ name: macOS on: push: + branches: + - '*' pull_request: + branches: + - '*' jobs: build: