mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-25 00:50:31 +00:00
fix os versions too
This commit is contained in:
parent
13e81530e9
commit
e0bbed1260
3 changed files with 23 additions and 30 deletions
13
.github/workflows/development.yml
vendored
13
.github/workflows/development.yml
vendored
|
@ -12,14 +12,11 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
go: [1.15]
|
go: [1.15]
|
||||||
os: [ubuntu-latest, macos-latest]
|
os: [ubuntu-18.04, macos-10.15]
|
||||||
upload-coverage: [true]
|
upload-coverage: [true]
|
||||||
include:
|
include:
|
||||||
#- go: 1.14
|
|
||||||
# os: ubuntu-latest
|
|
||||||
# upload-coverage: false
|
|
||||||
- go: 1.15
|
- go: 1.15
|
||||||
os: windows-latest
|
os: windows-2019
|
||||||
upload-coverage: false
|
upload-coverage: false
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -199,7 +196,7 @@ jobs:
|
||||||
|
|
||||||
test-postgresql-mysql:
|
test-postgresql-mysql:
|
||||||
name: Test with PostgreSQL/MySQL
|
name: Test with PostgreSQL/MySQL
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-18.04
|
||||||
|
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
|
@ -265,10 +262,10 @@ jobs:
|
||||||
|
|
||||||
golangci-lint:
|
golangci-lint:
|
||||||
name: golangci-lint
|
name: golangci-lint
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Run golangci-lint
|
- name: Run golangci-lint
|
||||||
uses: golangci/golangci-lint-action@v2
|
uses: golangci/golangci-lint-action@v2
|
||||||
with:
|
with:
|
||||||
version: latest
|
version: v1.37.1
|
||||||
|
|
6
.github/workflows/docker.yml
vendored
6
.github/workflows/docker.yml
vendored
|
@ -1,11 +1,7 @@
|
||||||
name: Docker
|
name: Docker
|
||||||
|
|
||||||
on:
|
on:
|
||||||
#schedule:
|
|
||||||
# - cron: '0 4 * * *' # everyday at 4:00 AM UTC
|
|
||||||
push:
|
push:
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
tags:
|
tags:
|
||||||
- v*
|
- v*
|
||||||
pull_request:
|
pull_request:
|
||||||
|
@ -17,7 +13,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os:
|
os:
|
||||||
- ubuntu-latest
|
- ubuntu-18.04
|
||||||
docker_pkg:
|
docker_pkg:
|
||||||
- debian
|
- debian
|
||||||
- alpine
|
- alpine
|
||||||
|
|
34
.github/workflows/release.yml
vendored
34
.github/workflows/release.yml
vendored
|
@ -10,7 +10,7 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
create-release:
|
create-release:
|
||||||
name: Create
|
name: Create
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
|
@ -36,7 +36,7 @@ jobs:
|
||||||
release-sources-with-deps:
|
release-sources-with-deps:
|
||||||
name: Publish sources
|
name: Publish sources
|
||||||
needs: create-release
|
needs: create-release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
|
@ -85,7 +85,7 @@ jobs:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
os: [ubuntu-18.04, macos-10.15, windows-2019]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -117,10 +117,10 @@ jobs:
|
||||||
- name: Get OS name
|
- name: Get OS name
|
||||||
id: get_os_name
|
id: get_os_name
|
||||||
run: |
|
run: |
|
||||||
if [ $MATRIX_OS == 'ubuntu-latest' ]
|
if [ $MATRIX_OS == 'ubuntu-18.04' ]
|
||||||
then
|
then
|
||||||
echo ::set-output name=OS::linux
|
echo ::set-output name=OS::linux
|
||||||
elif [ $MATRIX_OS == 'macos-latest' ]
|
elif [ $MATRIX_OS == 'macos-10.15' ]
|
||||||
then
|
then
|
||||||
echo ::set-output name=OS::macOS
|
echo ::set-output name=OS::macOS
|
||||||
else
|
else
|
||||||
|
@ -132,7 +132,7 @@ jobs:
|
||||||
|
|
||||||
- name: Gather cross build info
|
- name: Gather cross build info
|
||||||
id: cross_info
|
id: cross_info
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
if: ${{ matrix.os == 'ubuntu-18.04' }}
|
||||||
run: |
|
run: |
|
||||||
GIT_COMMIT=$(git describe --always)
|
GIT_COMMIT=$(git describe --always)
|
||||||
BUILD_DATE=$(date -u +%FT%TZ)
|
BUILD_DATE=$(date -u +%FT%TZ)
|
||||||
|
@ -140,7 +140,7 @@ jobs:
|
||||||
echo ::set-output name=created::${BUILD_DATE}
|
echo ::set-output name=created::${BUILD_DATE}
|
||||||
|
|
||||||
- name: Cross build with xgo
|
- name: Cross build with xgo
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
if: ${{ matrix.os == 'ubuntu-18.04' }}
|
||||||
uses: crazy-max/ghaction-xgo@v1
|
uses: crazy-max/ghaction-xgo@v1
|
||||||
with:
|
with:
|
||||||
go_version: ${{ env.GO_VERSION }}
|
go_version: ${{ env.GO_VERSION }}
|
||||||
|
@ -208,7 +208,7 @@ jobs:
|
||||||
|
|
||||||
- name: Prepare Linux Packages
|
- name: Prepare Linux Packages
|
||||||
id: build_linux_pkgs
|
id: build_linux_pkgs
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
if: ${{ matrix.os == 'ubuntu-18.04' }}
|
||||||
run: |
|
run: |
|
||||||
cp -r pkgs pkgs_arm64
|
cp -r pkgs pkgs_arm64
|
||||||
cp -r pkgs pkgs_ppc64le
|
cp -r pkgs pkgs_ppc64le
|
||||||
|
@ -290,7 +290,7 @@ jobs:
|
||||||
asset_content_type: application/x-xz
|
asset_content_type: application/x-xz
|
||||||
|
|
||||||
- name: Upload Linux/arm64 Release
|
- name: Upload Linux/arm64 Release
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
if: ${{ matrix.os == 'ubuntu-18.04' }}
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
@ -301,7 +301,7 @@ jobs:
|
||||||
asset_content_type: application/x-xz
|
asset_content_type: application/x-xz
|
||||||
|
|
||||||
- name: Upload Linux/ppc64le Release
|
- name: Upload Linux/ppc64le Release
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
if: ${{ matrix.os == 'ubuntu-18.04' }}
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
@ -312,7 +312,7 @@ jobs:
|
||||||
asset_content_type: application/x-xz
|
asset_content_type: application/x-xz
|
||||||
|
|
||||||
- name: Upload Linux Bundle Release
|
- name: Upload Linux Bundle Release
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
if: ${{ matrix.os == 'ubuntu-18.04' }}
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
@ -345,7 +345,7 @@ jobs:
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
|
|
||||||
- name: Upload Debian Package
|
- name: Upload Debian Package
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
if: ${{ matrix.os == 'ubuntu-18.04' }}
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
@ -356,7 +356,7 @@ jobs:
|
||||||
asset_content_type: application/vnd.debian.binary-package
|
asset_content_type: application/vnd.debian.binary-package
|
||||||
|
|
||||||
- name: Upload RPM Package
|
- name: Upload RPM Package
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
if: ${{ matrix.os == 'ubuntu-18.04' }}
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
@ -367,7 +367,7 @@ jobs:
|
||||||
asset_content_type: application/x-rpm
|
asset_content_type: application/x-rpm
|
||||||
|
|
||||||
- name: Upload Debian Package arm64
|
- name: Upload Debian Package arm64
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
if: ${{ matrix.os == 'ubuntu-18.04' }}
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
@ -378,7 +378,7 @@ jobs:
|
||||||
asset_content_type: application/vnd.debian.binary-package
|
asset_content_type: application/vnd.debian.binary-package
|
||||||
|
|
||||||
- name: Upload RPM Package arm64
|
- name: Upload RPM Package arm64
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
if: ${{ matrix.os == 'ubuntu-18.04' }}
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
@ -389,7 +389,7 @@ jobs:
|
||||||
asset_content_type: application/x-rpm
|
asset_content_type: application/x-rpm
|
||||||
|
|
||||||
- name: Upload Debian Package ppc64le
|
- name: Upload Debian Package ppc64le
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
if: ${{ matrix.os == 'ubuntu-18.04' }}
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
@ -400,7 +400,7 @@ jobs:
|
||||||
asset_content_type: application/vnd.debian.binary-package
|
asset_content_type: application/vnd.debian.binary-package
|
||||||
|
|
||||||
- name: Upload RPM Package ppc64le
|
- name: Upload RPM Package ppc64le
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
if: ${{ matrix.os == 'ubuntu-18.04' }}
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
Loading…
Reference in a new issue