From 23c6b978c393986b578468ff8ba2f296d6d437e8 Mon Sep 17 00:00:00 2001 From: Woo Woo <27909321+mrwoowoo@users.noreply.github.com> Date: Tue, 10 Nov 2020 18:51:30 +0800 Subject: [PATCH] fix --- .github/workflows/go.yml | 84 ---------------------------------------- 1 file changed, 84 deletions(-) delete mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml deleted file mode 100644 index 89fbd38..0000000 --- a/.github/workflows/go.yml +++ /dev/null @@ -1,84 +0,0 @@ -name: Go - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - -jobs: - - build: - name: Build linux64 - runs-on: ubuntu-latest - steps: - - - name: Set up Go 1.x - uses: actions/setup-go@v2 - with: - go-version: ^1.13 - - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - - name: Get dependencies - run: | - go get -v -t -d ./... - if [ -f Gopkg.toml ]; then - curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh - dep ensure - fi - - - name: Build - run: go build -o ruijie_login main.go - - - name: Achieve - run: tar -czvf rj.tar.gz ./ruijie_login - - - name: Upload Release Asset - uses: svenstaro/upload-release-action@v1-release - if: startsWith(github.ref, 'refs/tags/') - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: ./rj.tar.gz - asset_name: ${{ github.ref }}-linux64.tar.gz - tag: ${{ github.ref }} - - build: - name: Build mips32 - runs-on: ubuntu-latest - steps: - - - name: Set up Go 1.x - uses: actions/setup-go@v2 - with: - go-version: ^1.13 - - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - - name: Get dependencies - run: | - go get -v -t -d ./... - if [ -f Gopkg.toml ]; then - curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh - dep ensure - fi - git clone https://github.com/gomini/go-mips32.git - cd go-mips32/src - ./make.bash - - - name: Build - run: CGO_ENABLED=0 GOOS=linux GOARCH=mips32le ./go-mips32/mips/go-mips32/bin/go build -o ruijie_login main.go - - - name: Achieve - run: tar -czvf rj.tar.gz ./ruijie_login - - - name: Upload Release Asset - uses: svenstaro/upload-release-action@v1-release - if: startsWith(github.ref, 'refs/tags/') - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: ./rj.tar.gz - asset_name: ${{ github.ref }}-mips32.tar.gz - tag: ${{ github.ref }} \ No newline at end of file