mirror of
https://github.com/woodchen-ink/webp_server_go.git
synced 2025-07-18 13:42:02 +08:00
parent
64db6cc199
commit
fd3013b2eb
15
.github/workflows/CI.yaml
vendored
15
.github/workflows/CI.yaml
vendored
@ -8,20 +8,27 @@ on:
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
name: CI check on every push
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: centos:centos7
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.17.3
|
||||
go-version: 1.18
|
||||
|
||||
- name: Setup necessary packages
|
||||
run: |
|
||||
yum install epel-release -y
|
||||
yum groupinstall 'Development Tools' -y
|
||||
yum install libaom-devel -y
|
||||
|
||||
- name: run test cases
|
||||
run: sudo apt install libaom-dev && make test && make
|
||||
run: make test && make
|
||||
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v2
|
||||
|
16
.github/workflows/release_binary.yaml
vendored
16
.github/workflows/release_binary.yaml
vendored
@ -13,6 +13,8 @@ jobs:
|
||||
build:
|
||||
name: Create Release
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: centos:centos7
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@ -21,14 +23,24 @@ jobs:
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.17.3
|
||||
go-version: 1.18
|
||||
|
||||
- name: Setup necessary packages
|
||||
run: |
|
||||
yum install epel-release -y
|
||||
yum groupinstall 'Development Tools' -y
|
||||
yum install libaom-devel -y
|
||||
|
||||
- name: Make WebP Server Go
|
||||
run: |
|
||||
sudo apt-get update && sudo apt install libaom-dev
|
||||
make
|
||||
sha256sum builds/webp-server-linux-amd64 > builds/webp-server-linux-amd64.sha256
|
||||
|
||||
- name: Check for ldd version
|
||||
run: |
|
||||
ldd --version
|
||||
ldd builds/webp-server-linux-amd64
|
||||
|
||||
- uses: "marvinpinto/action-automatic-releases@latest"
|
||||
with:
|
||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user