|
6 | 6 | - "**" |
7 | 7 | # Allows you to run this workflow manually from the Actions tab |
8 | 8 | workflow_dispatch: |
| 9 | + pull_request: |
| 10 | + types: [opened, synchronize, reopened, ready_for_review] |
9 | 11 |
|
10 | 12 | permissions: |
11 | 13 | contents: write |
@@ -44,124 +46,124 @@ jobs: |
44 | 46 | allowUpdates: true |
45 | 47 | artifacts: libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a |
46 | 48 |
|
47 | | - build-aarch64-macos: |
48 | | - env: |
49 | | - OS: macos |
50 | | - ARCH: aarch64 |
51 | | - |
52 | | - runs-on: macos-latest |
53 | | - steps: |
54 | | - - uses: mlugg/setup-zig@v2 |
55 | | - with: |
56 | | - version: ${{ env.ZIG_VERSION }} |
57 | | - |
58 | | - - uses: actions/setup-python@v5 |
59 | | - with: |
60 | | - python-version: '3.11' |
61 | | - |
62 | | - - uses: actions/checkout@v4 |
63 | | - with: |
64 | | - submodules: recursive |
65 | | - fetch-depth: 0 |
66 | | - |
67 | | - - run: zig build -Doptimize=ReleaseSafe build-v8 |
68 | | - - run: mv v8/out/${{ env.OS }}/release/obj/zig/libc_v8.a libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a |
69 | | - |
70 | | - - name: Upload the build |
71 | | - uses: ncipollo/release-action@v1 |
72 | | - with: |
73 | | - allowUpdates: true |
74 | | - artifacts: libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a |
75 | | - |
76 | | - build-arm64-linux: |
77 | | - env: |
78 | | - OS: linux |
79 | | - ARCH: aarch64 |
80 | | - |
81 | | - runs-on: ubuntu-22.04-arm |
82 | | - steps: |
83 | | - - uses: mlugg/setup-zig@v2 |
84 | | - with: |
85 | | - version: ${{ env.ZIG_VERSION }} |
86 | | - |
87 | | - - uses: actions/checkout@v4 |
88 | | - with: |
89 | | - submodules: recursive |
90 | | - fetch-depth: 0 |
91 | | - |
92 | | - - run: | |
93 | | - sudo apt-get update |
94 | | - sudo apt-get install -yq libglib2.0-dev lld |
95 | | - wget https://apt.llvm.org/llvm.sh |
96 | | - chmod +x llvm.sh |
97 | | - sudo ./llvm.sh 21 |
98 | | - sudo ln -nsf /usr/lib/llvm-21/lib/clang/21/lib/linux/libclang_rt.builtins-aarch64.a /usr/lib/llvm-21/lib/clang/21/lib/linux/libclang_rt.builtins.a && \ |
99 | | - sudo ln -nsf /usr/lib/llvm-21/lib/clang/21/lib/linux/ /usr/lib/llvm-21/lib/clang/21/lib/aarch64-unknown-linux-gnu |
100 | | -
|
101 | | - - run: zig build -Doptimize=ReleaseSafe build-v8 |
102 | | - - run: mv v8/out/${{ env.OS }}/release/obj/zig/libc_v8.a libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a |
103 | | - |
104 | | - - name: Upload the build |
105 | | - uses: ncipollo/release-action@v1 |
106 | | - with: |
107 | | - allowUpdates: true |
108 | | - artifacts: libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a |
109 | | - |
110 | | - build-x86_64-macos: |
111 | | - env: |
112 | | - OS: macos |
113 | | - ARCH: x86_64 |
114 | | - |
115 | | - runs-on: macos-15-large |
116 | | - steps: |
117 | | - - uses: mlugg/setup-zig@v2 |
118 | | - with: |
119 | | - version: ${{ env.ZIG_VERSION }} |
120 | | - |
121 | | - - uses: actions/setup-python@v5 |
122 | | - with: |
123 | | - python-version: '3.11' |
124 | | - |
125 | | - - uses: actions/checkout@v4 |
126 | | - with: |
127 | | - submodules: recursive |
128 | | - fetch-depth: 0 |
129 | | - |
130 | | - - run: zig build -Doptimize=ReleaseSafe build-v8 |
131 | | - - run: mv v8/out/${{ env.OS }}/release/obj/zig/libc_v8.a libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a |
132 | | - |
133 | | - - name: Upload the build |
134 | | - uses: ncipollo/release-action@v1 |
135 | | - with: |
136 | | - allowUpdates: true |
137 | | - artifacts: libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a |
138 | | - |
139 | | - build-aarch64-ios: |
140 | | - env: |
141 | | - OS: ios |
142 | | - ARCH: aarch64 |
143 | | - TARGET_ENVIRONMENT: simulator |
144 | | - |
145 | | - runs-on: macos-latest |
146 | | - steps: |
147 | | - - uses: mlugg/setup-zig@v2 |
148 | | - with: |
149 | | - version: ${{ env.ZIG_VERSION }} |
150 | | - |
151 | | - - uses: actions/setup-python@v5 |
152 | | - with: |
153 | | - python-version: '3.11' |
154 | | - |
155 | | - - uses: actions/checkout@v4 |
156 | | - with: |
157 | | - submodules: recursive |
158 | | - fetch-depth: 0 |
159 | | - |
160 | | - - run: zig build -Doptimize=ReleaseSafe build-v8 |
161 | | - - run: mv v8/out/${{ env.OS }}/release/obj/zig/libc_v8.a libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.TARGET_ENVIRONMENT }}_${{ env.ARCH }}.a |
162 | | - |
163 | | - - name: Upload the build |
164 | | - uses: ncipollo/release-action@v1 |
165 | | - with: |
166 | | - allowUpdates: true |
167 | | - artifacts: libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.TARGET_ENVIRONMENT }}_${{ env.ARCH }}.a |
| 49 | + # build-aarch64-macos: |
| 50 | + # env: |
| 51 | + # OS: macos |
| 52 | + # ARCH: aarch64 |
| 53 | + |
| 54 | + # runs-on: macos-latest |
| 55 | + # steps: |
| 56 | + # - uses: mlugg/setup-zig@v2 |
| 57 | + # with: |
| 58 | + # version: ${{ env.ZIG_VERSION }} |
| 59 | + |
| 60 | + # - uses: actions/setup-python@v5 |
| 61 | + # with: |
| 62 | + # python-version: '3.11' |
| 63 | + |
| 64 | + # - uses: actions/checkout@v4 |
| 65 | + # with: |
| 66 | + # submodules: recursive |
| 67 | + # fetch-depth: 0 |
| 68 | + |
| 69 | + # - run: zig build -Doptimize=ReleaseSafe build-v8 |
| 70 | + # - run: mv v8/out/${{ env.OS }}/release/obj/zig/libc_v8.a libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a |
| 71 | + |
| 72 | + # - name: Upload the build |
| 73 | + # uses: ncipollo/release-action@v1 |
| 74 | + # with: |
| 75 | + # allowUpdates: true |
| 76 | + # artifacts: libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a |
| 77 | + |
| 78 | + # build-arm64-linux: |
| 79 | + # env: |
| 80 | + # OS: linux |
| 81 | + # ARCH: aarch64 |
| 82 | + |
| 83 | + # runs-on: ubuntu-22.04-arm |
| 84 | + # steps: |
| 85 | + # - uses: mlugg/setup-zig@v2 |
| 86 | + # with: |
| 87 | + # version: ${{ env.ZIG_VERSION }} |
| 88 | + |
| 89 | + # - uses: actions/checkout@v4 |
| 90 | + # with: |
| 91 | + # submodules: recursive |
| 92 | + # fetch-depth: 0 |
| 93 | + |
| 94 | + # - run: | |
| 95 | + # sudo apt-get update |
| 96 | + # sudo apt-get install -yq libglib2.0-dev lld |
| 97 | + # wget https://apt.llvm.org/llvm.sh |
| 98 | + # chmod +x llvm.sh |
| 99 | + # sudo ./llvm.sh 21 |
| 100 | + # sudo ln -nsf /usr/lib/llvm-21/lib/clang/21/lib/linux/libclang_rt.builtins-aarch64.a /usr/lib/llvm-21/lib/clang/21/lib/linux/libclang_rt.builtins.a && \ |
| 101 | + # sudo ln -nsf /usr/lib/llvm-21/lib/clang/21/lib/linux/ /usr/lib/llvm-21/lib/clang/21/lib/aarch64-unknown-linux-gnu |
| 102 | + |
| 103 | + # - run: zig build -Doptimize=ReleaseSafe build-v8 |
| 104 | + # - run: mv v8/out/${{ env.OS }}/release/obj/zig/libc_v8.a libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a |
| 105 | + |
| 106 | + # - name: Upload the build |
| 107 | + # uses: ncipollo/release-action@v1 |
| 108 | + # with: |
| 109 | + # allowUpdates: true |
| 110 | + # artifacts: libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a |
| 111 | + |
| 112 | + # build-x86_64-macos: |
| 113 | + # env: |
| 114 | + # OS: macos |
| 115 | + # ARCH: x86_64 |
| 116 | + |
| 117 | + # runs-on: macos-15-large |
| 118 | + # steps: |
| 119 | + # - uses: mlugg/setup-zig@v2 |
| 120 | + # with: |
| 121 | + # version: ${{ env.ZIG_VERSION }} |
| 122 | + |
| 123 | + # - uses: actions/setup-python@v5 |
| 124 | + # with: |
| 125 | + # python-version: '3.11' |
| 126 | + |
| 127 | + # - uses: actions/checkout@v4 |
| 128 | + # with: |
| 129 | + # submodules: recursive |
| 130 | + # fetch-depth: 0 |
| 131 | + |
| 132 | + # - run: zig build -Doptimize=ReleaseSafe build-v8 |
| 133 | + # - run: mv v8/out/${{ env.OS }}/release/obj/zig/libc_v8.a libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a |
| 134 | + |
| 135 | + # - name: Upload the build |
| 136 | + # uses: ncipollo/release-action@v1 |
| 137 | + # with: |
| 138 | + # allowUpdates: true |
| 139 | + # artifacts: libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a |
| 140 | + |
| 141 | + # build-aarch64-ios: |
| 142 | + # env: |
| 143 | + # OS: ios |
| 144 | + # ARCH: aarch64 |
| 145 | + # TARGET_ENVIRONMENT: simulator |
| 146 | + |
| 147 | + # runs-on: macos-latest |
| 148 | + # steps: |
| 149 | + # - uses: mlugg/setup-zig@v2 |
| 150 | + # with: |
| 151 | + # version: ${{ env.ZIG_VERSION }} |
| 152 | + |
| 153 | + # - uses: actions/setup-python@v5 |
| 154 | + # with: |
| 155 | + # python-version: '3.11' |
| 156 | + |
| 157 | + # - uses: actions/checkout@v4 |
| 158 | + # with: |
| 159 | + # submodules: recursive |
| 160 | + # fetch-depth: 0 |
| 161 | + |
| 162 | + # - run: zig build -Doptimize=ReleaseSafe build-v8 |
| 163 | + # - run: mv v8/out/${{ env.OS }}/release/obj/zig/libc_v8.a libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.TARGET_ENVIRONMENT }}_${{ env.ARCH }}.a |
| 164 | + |
| 165 | + # - name: Upload the build |
| 166 | + # uses: ncipollo/release-action@v1 |
| 167 | + # with: |
| 168 | + # allowUpdates: true |
| 169 | + # artifacts: libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.TARGET_ENVIRONMENT }}_${{ env.ARCH }}.a |
0 commit comments