diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/continuous-build-freebsd.yml | 49 | ||||
-rw-r--r-- | .github/workflows/continuous-build-linux.yml | 14 | ||||
-rw-r--r-- | .github/workflows/continuous-build-macos.yml | 39 |
3 files changed, 93 insertions, 9 deletions
diff --git a/.github/workflows/continuous-build-freebsd.yml b/.github/workflows/continuous-build-freebsd.yml new file mode 100644 index 0000000..95c2db6 --- /dev/null +++ b/.github/workflows/continuous-build-freebsd.yml @@ -0,0 +1,49 @@ +name: Continuous Build FreeBSD + +on: + workflow_dispatch: + push: + branches: + - main + tags-ignore: + - '*.*' + paths: + - 'src/**' + - '!src/linux/**' + - '!src/osx/**' + - 'include/**' + - 'Makefile' + - '.github/workflows/continuous-build-freebsd.yml' + pull_request: + branches: + - main + paths: + - 'src/**' + - '!src/linux/**' + - '!src/osx/**' + - 'include/**' + - 'Makefile' + - '.github/workflows/continuous-build-freebsd.yml' + +jobs: + build-freebsd: + runs-on: macos-12 + steps: + - uses: actions/checkout@v3 + - name: Compile + uses: vmactions/freebsd-vm@v0 + with: + release: 13.1 + usesh: true + prepare: | + pkg install -y gmake gcc11 coreutils git + run: | + gmake + GIT_HASH=$(git rev-parse --short "$GITHUB_SHA") + mv bin/btop bin/btop-$GIT_HASH + ls -alh bin + - uses: actions/upload-artifact@v3 + with: + name: btop-x86_64-FreeBSD-13.1 + path: 'bin/*' + diff --git a/.github/workflows/continuous-build-linux.yml b/.github/workflows/continuous-build-linux.yml index af32d65..ab99798 100644 --- a/.github/workflows/continuous-build-linux.yml +++ b/.github/workflows/continuous-build-linux.yml @@ -14,6 +14,16 @@ on: - 'include/**' - 'Makefile' - '.github/workflows/continuous-build.yml' + pull_request: + branches: + - main + paths: + - 'src/**' + - '!src/osx/**' + - '!src/freebsd/**' + - 'include/**' + - 'Makefile' + - '.github/workflows/continuous-build.yml' jobs: static-build: @@ -83,7 +93,7 @@ jobs: run: git config --global --add safe.directory /__w/btop/btop - name: Checkout source - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Fix - Stopping at filesystem boundary run: git init # [fix Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).] @@ -107,7 +117,7 @@ jobs: cp bin/btop .artifacts/$FILENAME - name: Upload artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: btop-${{ matrix.toolchain }} path: '.artifacts/**' diff --git a/.github/workflows/continuous-build-macos.yml b/.github/workflows/continuous-build-macos.yml index 2cb5e4a..fe23f3b 100644 --- a/.github/workflows/continuous-build-macos.yml +++ b/.github/workflows/continuous-build-macos.yml @@ -1,6 +1,7 @@ name: Continuous Build MacOS on: + workflow_dispatch: push: branches: - main @@ -12,15 +13,23 @@ on: - '!src/freebsd/**' - 'include/**' - 'Makefile' - - '.github/workflows/*' + - '.github/workflows/continuous-build-macos.yml' + pull_request: + branches: + - main + paths: + - 'src/**' + - '!src/linux/**' + - '!src/freebsd/**' + - 'include/**' + - 'Makefile' + - '.github/workflows/continuous-build-macos.yml' jobs: - build-osx: - + build-macos11: runs-on: macos-11 - steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Compile run: | make CXX=g++-11 ARCH=x86_64 STATIC=true STRIP=true @@ -28,7 +37,23 @@ jobs: mv bin/btop bin/btop-x86_64-BigSur-$GIT_HASH ls -alh bin - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 + with: + name: btop-x86_64-macos11-BigSur + path: 'bin/*' + + build-macos12: + runs-on: macos-12 + steps: + - uses: actions/checkout@v3 + - name: Compile + run: | + make CXX=g++-11 ARCH=x86_64 STATIC=true STRIP=true + GIT_HASH=$(git rev-parse --short "$GITHUB_SHA") + mv bin/btop bin/btop-x86_64-Monterey-$GIT_HASH + ls -alh bin + + - uses: actions/upload-artifact@v3 with: - name: btop-x86_64-macos-BigSur + name: btop-x86_64-macos12-Monterey path: 'bin/*' |