fix: 使用os库替换遗弃的io/ioutil #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |