|
12 | 12 | PLATFORMS: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6,linux/386,linux/ppc64le,linux/s390x |
13 | 13 |
|
14 | 14 | jobs: |
| 15 | + |
15 | 16 | build-docker: |
16 | 17 | runs-on: ubuntu-latest |
17 | | - permissions: |
18 | | - contents: read |
19 | | - packages: write |
20 | 18 |
|
21 | 19 | strategy: |
22 | 20 | matrix: |
@@ -52,72 +50,72 @@ jobs: |
52 | 50 | name: ${{ env.IMAGE_NAME }}-docker-${{ steps.prep.outputs.safe_platform }}.tar |
53 | 51 | path: ${{ env.IMAGE_NAME }}-docker-${{ steps.prep.outputs.safe_platform }}.tar |
54 | 52 |
|
55 | | - build-linux-x64: |
| 53 | + build-linux: |
56 | 54 | runs-on: ubuntu-latest |
57 | 55 | 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: . |
85 | 83 |
|
86 | 84 | build-macos: |
87 | 85 | runs-on: macos-latest |
88 | 86 | 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: . |
100 | 98 |
|
101 | 99 | build-windows: |
102 | 100 | runs-on: windows-latest |
103 | 101 | defaults: |
104 | 102 | run: |
105 | 103 | shell: msys2 {0} |
106 | 104 | 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: . |
0 commit comments