Skip to content

fix: 使用os库替换遗弃的io/ioutil #13

fix: 使用os库替换遗弃的io/ioutil

fix: 使用os库替换遗弃的io/ioutil #13

Workflow file for this run

name: build
on:
pull_request:
branches: [ master ]
jobs:
build:
strategy:
matrix:
platform: [ubuntu-latest]
go-version: [1.17]
name: Build
runs-on: ${{ matrix.platform }}
steps:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout
uses: actions/checkout@v2
- name: Set up xgo
run: |
docker pull techknowlogick/xgo:latest
go install src.techknowlogick.com/xgo@latest
sudo apt install upx
- name: Build
run: |
ls -a
pwd
bash build.sh
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: artifact
path: build