diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/FUNDING.yml | 2 | ||||
-rw-r--r-- | .github/workflows/alpine.yml | 15 | ||||
-rw-r--r-- | .github/workflows/arch.yml | 15 | ||||
-rw-r--r-- | .github/workflows/clang.yml | 35 | ||||
-rw-r--r-- | .github/workflows/coverity.yml | 15 | ||||
-rw-r--r-- | .github/workflows/fedora-gcc10.yml | 15 | ||||
-rw-r--r-- | .github/workflows/fedora.yml | 15 | ||||
-rw-r--r-- | .github/workflows/macos-latest.yml | 23 | ||||
-rw-r--r-- | .github/workflows/ubuntu-gcc10.yml | 15 | ||||
-rw-r--r-- | .github/workflows/ubuntu.yml | 15 |
10 files changed, 164 insertions, 1 deletions
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index a1f700fd..36cb5950 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,3 +1,3 @@ -#github: [poolpOrg] +github: [poolpOrg] patreon: gilles diff --git a/.github/workflows/alpine.yml b/.github/workflows/alpine.yml new file mode 100644 index 00000000..23816eab --- /dev/null +++ b/.github/workflows/alpine.yml @@ -0,0 +1,15 @@ +name: Alpine Linux (amd64 musl openssl) +on: + push: + branches: + - master + pull_request: + branches: + - master +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Alpine Linux (amd64 musl openssl) + run: docker build . --file ci/docker/Dockerfile.alpine --tag opensmtpd:alpine diff --git a/.github/workflows/arch.yml b/.github/workflows/arch.yml new file mode 100644 index 00000000..2ee226a2 --- /dev/null +++ b/.github/workflows/arch.yml @@ -0,0 +1,15 @@ +name: Archlinux (amd64 glibc libressl) +on: + push: + branches: + - master + pull_request: + branches: + - master +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Archlinux (amd64 glibc libressl) + run: docker build . --file ci/docker/Dockerfile.archlinux --tag opensmtpd:archlinux diff --git a/.github/workflows/clang.yml b/.github/workflows/clang.yml new file mode 100644 index 00000000..15ccd31d --- /dev/null +++ b/.github/workflows/clang.yml @@ -0,0 +1,35 @@ +name: Clang Scan + +on: + schedule: + - cron: '0 23 * * *' # Daily at 23:00 UTC +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: install dependencies + run: | + wget https://apt.llvm.org/llvm.sh + chmod +x llvm.sh + sudo ./llvm.sh 9 + sudo apt install \ + clang-tools-9 \ + libasr-dev \ + libevent-dev \ + libssl-dev \ + bison + - uses: actions/checkout@v1 + - name: run scan-build + run: | + export PATH=$PATH:/usr/lib/llvm-9/bin/ + CLANG_SCAN_BADGE_REQUIRED=1 ci/scripts/clang_scan.sh + - name: publish results + run: | + aws s3 rm --recursive s3://opensmtpd/reports/clang/ + cd clang-report + cd "$( find . -type d | sort | tail -n1 )" + aws s3 sync . s3://opensmtpd/reports/clang + env: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }} diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml new file mode 100644 index 00000000..d25bb4f7 --- /dev/null +++ b/.github/workflows/coverity.yml @@ -0,0 +1,15 @@ +name: Coverity Scan +on: + schedule: + - cron: '0 23 * * *' # Daily at 23:00 UTC +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: dependencies + run: sudo apt install libasr-dev libevent-dev libssl-dev bison + - name: scan + run: sh ci/scripts/coverity_scan.sh + env: + token: ${{ secrets.COVERITY_SCAN_TOKEN }} diff --git a/.github/workflows/fedora-gcc10.yml b/.github/workflows/fedora-gcc10.yml new file mode 100644 index 00000000..698d9d5b --- /dev/null +++ b/.github/workflows/fedora-gcc10.yml @@ -0,0 +1,15 @@ +name: Fedora (amd64 glibc openssl gcc10) +on: + push: + branches: + - master + pull_request: + branches: + - master +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Fedora (amd64 glibc openssl gcc10) + run: docker build . --file ci/docker/Dockerfile.fedora-gcc10 --tag opensmtpd:fedora-gcc10 diff --git a/.github/workflows/fedora.yml b/.github/workflows/fedora.yml new file mode 100644 index 00000000..448a6eda --- /dev/null +++ b/.github/workflows/fedora.yml @@ -0,0 +1,15 @@ +name: Fedora (amd64 glibc openssl) +on: + push: + branches: + - master + pull_request: + branches: + - master +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Fedora (amd64 glibc openssl) + run: docker build . --file ci/docker/Dockerfile.fedora --tag opensmtpd:fedora diff --git a/.github/workflows/macos-latest.yml b/.github/workflows/macos-latest.yml new file mode 100644 index 00000000..1960a39a --- /dev/null +++ b/.github/workflows/macos-latest.yml @@ -0,0 +1,23 @@ +name: macOS Catalina 10.15 +on: + push: + branches: + - master + pull_request: + branches: + - master +jobs: + build: + runs-on: macos-latest + steps: + - uses: actions/checkout@v1 + - name: macOS Catalina 10.15 + run: | + brew install automake libevent openssl@1.1 bison + export PATH="/usr/local/opt/bison/bin:$PATH" + export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/bison/lib" + export CFLAGS=-I/usr/local/opt/openssl@1.1/include + ./bootstrap + ./configure --with-gnu-ld --sysconfdir=/etc/mail --with-auth-pam + make + sudo make install diff --git a/.github/workflows/ubuntu-gcc10.yml b/.github/workflows/ubuntu-gcc10.yml new file mode 100644 index 00000000..e593df39 --- /dev/null +++ b/.github/workflows/ubuntu-gcc10.yml @@ -0,0 +1,15 @@ +name: Ubuntu (amd64 glibc openssl gcc10) +on: + push: + branches: + - master + pull_request: + branches: + - master +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Ubuntu (amd64 glibc openssl gcc10) + run: docker build . --file ci/docker/Dockerfile.ubuntu-gcc10 --tag opensmtpd:ubuntu-gcc10 diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml new file mode 100644 index 00000000..c4bfd437 --- /dev/null +++ b/.github/workflows/ubuntu.yml @@ -0,0 +1,15 @@ +name: Ubuntu (amd64 glibc openssl) +on: + push: + branches: + - master + pull_request: + branches: + - master +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Ubuntu (amd64 glibc openssl) + run: docker build . --file ci/docker/Dockerfile.ubuntu --tag opensmtpd:ubuntu |