Skip to content

Commit 85b198f

Browse files
committed
release.yml
1 parent 717352e commit 85b198f

3 files changed

Lines changed: 328 additions & 56 deletions

File tree

.github/workflows/build.yml

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -55,69 +55,69 @@ jobs:
5555
build-linux-x64:
5656
runs-on: ubuntu-latest
5757
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: .
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.zip
84+
path: .
8585

8686
build-macos:
8787
runs-on: macos-latest
8888
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: .
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.zip
99+
path: .
100100

101101
build-windows:
102102
runs-on: windows-latest
103103
defaults:
104104
run:
105105
shell: msys2 {0}
106106
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: .
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.zip
123+
path: .

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Get version
3434
id: prep
3535
run: |
36-
VERSION=$(grep VERSION wg-obfuscator.h | awk '{print $3}' | sed 's|"||g')
36+
VERSION=$(grep VERSION wg-obfuscator.h | awk '{print $3}' | sed 's|"||g' | tr -d '\r')
3737
echo "version=$VERSION" >> $GITHUB_OUTPUT
3838
3939
- name: Build and push multiarch image

0 commit comments

Comments
 (0)