Skip to content

do not use upx anymore (#759) #11

do not use upx anymore (#759)

do not use upx anymore (#759) #11

Workflow file for this run

name: Backup Git repository
on:
workflow_dispatch:
push:
branches:
- master
jobs:
BackupBinary:
runs-on: ubuntu-20.04
steps:
- name: Set up Go 1.16
uses: actions/[email protected]
with:
go-version: 1.16
id: go
- uses: actions/[email protected]
- name: Upgrade upx
run: |
# try to fix https://github.com/jenkins-zh/jenkins-cli/issues/493
wget https://github.com/upx/upx/releases/download/v3.96/upx-3.96-amd64_linux.tar.xz
tar xvf upx-3.96-amd64_linux.tar.xz
upx-3.96-amd64_linux/upx -V
sudo mv upx-3.96-amd64_linux/upx $(which upx)
upx -V
- name: Run GoReleaser
uses: goreleaser/[email protected]
with:
version: latest
args: release --rm-dist --snapshot
BackupGit:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: backup
uses: jenkins-zh/[email protected]
env:
GIT_DEPLOY_KEY: ${{ secrets.GIT_DEPLOY_KEY }}
TARGET_GIT: "[email protected]:jenkins-zh/jenkins-cli.git"
UnitTest:
name: Test
runs-on: ubuntu-20.04
steps:
- name: Set up Go 1.16
uses: actions/[email protected]
with:
go-version: 1.16
id: go
- name: Check out code into the Go module directory
uses: actions/[email protected]
- name: Test
run: |
make test
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.out
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true