forked from ms/transocks
This commit is contained in:
parent
c429f40125
commit
1dff7ec332
@ -40,28 +40,41 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
version: v1.60
|
version: v1.60
|
||||||
|
|
||||||
- name: build amd64
|
- name: build linux amd64
|
||||||
id: build-amd64
|
id: build-amd64
|
||||||
run: |
|
run: |
|
||||||
echo "ARTIFACT=transocks-$(make version)_$(go env GOOS)-amd64" >> $GITHUB_OUTPUT
|
echo "ARTIFACT=transocks-$(make version)_$(go env GOOS)-amd64" >> $GITHUB_OUTPUT
|
||||||
GOARCH=amd64 make clean build
|
GOARCH=amd64 make clean build
|
||||||
|
|
||||||
- name: upload amd64
|
- name: upload linux amd64
|
||||||
uses: https://git.mousesoft.ru/actions/upload-artifact@v3
|
uses: https://git.mousesoft.ru/actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ steps.build-amd64.outputs.ARTIFACT }}
|
name: ${{ steps.build-amd64.outputs.ARTIFACT }}
|
||||||
path: out/bin/*
|
path: out/bin/*
|
||||||
overwrite: true
|
overwrite: true
|
||||||
|
|
||||||
- name: build arm64
|
- name: build linux arm64
|
||||||
id: build-arm64
|
id: build-arm64
|
||||||
run: |
|
run: |
|
||||||
echo "ARTIFACT=transocks-$(make version)_$(go env GOOS)-arm64" >> $GITHUB_OUTPUT
|
echo "ARTIFACT=transocks-$(make version)_$(go env GOOS)-arm64" >> $GITHUB_OUTPUT
|
||||||
GOARCH=arm64 make clean build
|
GOARCH=arm64 make clean build
|
||||||
|
|
||||||
- name: upload arm64
|
- name: upload linux arm64
|
||||||
uses: https://git.mousesoft.ru/actions/upload-artifact@v3
|
uses: https://git.mousesoft.ru/actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ steps.build-arm64.outputs.ARTIFACT }}
|
name: ${{ steps.build-arm64.outputs.ARTIFACT }}
|
||||||
path: out/bin/*
|
path: out/bin/*
|
||||||
overwrite: true
|
overwrite: true
|
||||||
|
|
||||||
|
- name: build linux arm32
|
||||||
|
id: build-arm32
|
||||||
|
run: |
|
||||||
|
echo "ARTIFACT=transocks-$(make version)_$(go env GOOS)-arm32" >> $GITHUB_OUTPUT
|
||||||
|
GOARCH=arm32 make clean build
|
||||||
|
|
||||||
|
- name: upload linux arm32
|
||||||
|
uses: https://git.mousesoft.ru/actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: ${{ steps.build-arm32.outputs.ARTIFACT }}
|
||||||
|
path: out/bin/*
|
||||||
|
overwrite: true
|
||||||
|
@ -10,11 +10,6 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
|
||||||
version: ${{ steps.meta.outputs.VERSION }}
|
|
||||||
changes: ${{ steps.meta.outputs.CHANGES }}
|
|
||||||
artifact_amd64: ${{ steps.build-amd.outputs.ARTIFACT }}
|
|
||||||
artifact_arm64: ${{ steps.build-arm.outputs.ARTIFACT }}
|
|
||||||
steps:
|
steps:
|
||||||
- name: check-out
|
- name: check-out
|
||||||
uses: https://git.mousesoft.ru/actions/checkout@v4
|
uses: https://git.mousesoft.ru/actions/checkout@v4
|
||||||
@ -43,14 +38,15 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
version: v1.60
|
version: v1.60
|
||||||
|
|
||||||
- name: build amd64
|
- name: build linux amd64
|
||||||
id: build-amd64
|
|
||||||
run: GOARCH=amd64 make build pkg-deb
|
run: GOARCH=amd64 make build pkg-deb
|
||||||
|
|
||||||
- name: build arm64
|
- name: build linux arm64
|
||||||
id: build-arm64
|
|
||||||
run: GOARCH=arm64 make build pkg-deb
|
run: GOARCH=arm64 make build pkg-deb
|
||||||
|
|
||||||
|
- name: build linux arm32
|
||||||
|
run: GOARCH=arm32 make build pkg-deb
|
||||||
|
|
||||||
- name: meta
|
- name: meta
|
||||||
id: meta
|
id: meta
|
||||||
env:
|
env:
|
||||||
|
Loading…
Reference in New Issue
Block a user