Skip to content

Commit fdb29f9

Browse files
committed
release.yml
1 parent 717352e commit fdb29f9

4 files changed

Lines changed: 439 additions & 107 deletions

File tree

.github/workflows/build.yml

Lines changed: 57 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,9 @@ env:
1212
PLATFORMS: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6,linux/386,linux/ppc64le,linux/s390x
1313

1414
jobs:
15+
1516
build-docker:
1617
runs-on: ubuntu-latest
17-
permissions:
18-
contents: read
19-
packages: write
2018

2119
strategy:
2220
matrix:
@@ -52,72 +50,72 @@ jobs:
5250
name: ${{ env.IMAGE_NAME }}-docker-${{ steps.prep.outputs.safe_platform }}.tar
5351
path: ${{ env.IMAGE_NAME }}-docker-${{ steps.prep.outputs.safe_platform }}.tar
5452

55-
build-linux-x64:
53+
build-linux:
5654
runs-on: ubuntu-latest
5755
steps:
58-
- name: Checkout
59-
uses: actions/checkout@v4
60-
- name: make clean all x64
61-
run: make clean all
62-
- name: Upload artifact
63-
uses: actions/upload-artifact@v4
64-
with:
65-
name: wg-obfuscator-linux-x64
66-
path: .
67-
- name: apt update
68-
run: sudo apt-get update
69-
- name: Get ARM toolchain
70-
run: sudo apt-get install gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu
71-
- name: make clean all arm
72-
run: make clean all CC=arm-linux-gnueabihf-gcc
73-
- name: Upload artifact
74-
uses: actions/upload-artifact@v4
75-
with:
76-
name: wg-obfuscator-linux-arm
77-
path: .
78-
- name: make clean all arm64
79-
run: make clean all CC=aarch64-linux-gnu-gcc
80-
- name: Upload artifact
81-
uses: actions/upload-artifact@v4
82-
with:
83-
name: ${{ env.IMAGE_NAME }}-linux-arm64
84-
path: .
56+
- name: Checkout
57+
uses: actions/checkout@v4
58+
- name: make clean all x64
59+
run: make clean all
60+
- name: Upload artifact
61+
uses: actions/upload-artifact@v4
62+
with:
63+
name: wg-obfuscator-linux-x64.zip
64+
path: .
65+
- name: apt update
66+
run: sudo apt-get update
67+
- name: Get ARM toolchain
68+
run: sudo apt-get install gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu
69+
- name: make clean all arm
70+
run: make clean all CC=arm-linux-gnueabihf-gcc
71+
- name: Upload artifact
72+
uses: actions/upload-artifact@v4
73+
with:
74+
name: wg-obfuscator-linux-arm.zip
75+
path: .
76+
- name: make clean all arm64
77+
run: make clean all CC=aarch64-linux-gnu-gcc
78+
- name: Upload artifact
79+
uses: actions/upload-artifact@v4
80+
with:
81+
name: ${{ env.IMAGE_NAME }}-linux-arm64.zip
82+
path: .
8583

8684
build-macos:
8785
runs-on: macos-latest
8886
steps:
89-
- name: Install argp
90-
run: brew install argp-standalone
91-
- name: Checkout
92-
uses: actions/checkout@v4
93-
- name: make clean all
94-
run: make clean all
95-
- name: Upload artifact
96-
uses: actions/upload-artifact@v4
97-
with:
98-
name: ${{ env.IMAGE_NAME }}-macos
99-
path: .
87+
- name: Install argp
88+
run: brew install argp-standalone
89+
- name: Checkout
90+
uses: actions/checkout@v4
91+
- name: make clean all
92+
run: make clean all
93+
- name: Upload artifact
94+
uses: actions/upload-artifact@v4
95+
with:
96+
name: ${{ env.IMAGE_NAME }}-macos.zip
97+
path: .
10098

10199
build-windows:
102100
runs-on: windows-latest
103101
defaults:
104102
run:
105103
shell: msys2 {0}
106104
steps:
107-
- uses: msys2/setup-msys2@v2
108-
with:
109-
update: true
110-
install: >-
111-
base-devel
112-
gcc
113-
git
114-
libargp-devel
115-
- name: Checkout
116-
uses: actions/checkout@v4
117-
- name: make clean all
118-
run: make clean all
119-
- name: Upload artifact
120-
uses: actions/upload-artifact@v4
121-
with:
122-
name: ${{ env.IMAGE_NAME }}-windows
123-
path: .
105+
- uses: msys2/setup-msys2@v2
106+
with:
107+
update: true
108+
install: >-
109+
base-devel
110+
gcc
111+
git
112+
libargp-devel
113+
- name: Checkout
114+
uses: actions/checkout@v4
115+
- name: make clean all
116+
run: make clean all
117+
- name: Upload artifact
118+
uses: actions/upload-artifact@v4
119+
with:
120+
name: ${{ env.IMAGE_NAME }}-windows.zip
121+
path: .

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build & Publish Nightly Multiarch Docker Image
1+
name: Publish Nightly Docker Image
22

33
on:
44
push:

.github/workflows/publish.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)