gpu-dawn: CI: cleanup git submodules in M1 runner
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
b994c85982
commit
378c0af65e
1 changed files with 23 additions and 19 deletions
42
gpu-dawn/.github/workflows/m1_ci.yml
vendored
42
gpu-dawn/.github/workflows/m1_ci.yml
vendored
|
|
@ -11,25 +11,29 @@ jobs:
|
||||||
run:
|
run:
|
||||||
shell: "/usr/bin/arch -arch arm64e /bin/bash --noprofile --norc -eo pipefail {0}"
|
shell: "/usr/bin/arch -arch arm64e /bin/bash --noprofile --norc -eo pipefail {0}"
|
||||||
steps:
|
steps:
|
||||||
# TODO(build-system): remove this step, uncomment the steps below, and fix the M1 CI runner.
|
- name: Clean repository submodules
|
||||||
|
# See https://github.com/actions/checkout/issues/385
|
||||||
|
run: |
|
||||||
|
git submodule deinit .
|
||||||
|
git submodule | cut -c43- | while read -r line; do (git rm "$line"); done
|
||||||
|
git config --local -l | grep submodule | sed -e 's/^\(submodule\.[^.]*\)\(.*\)/\1/g' | while read -r line; do (git config --local --remove-section "$line"); done
|
||||||
|
rm -rf .gitmodules .git/modules
|
||||||
|
git reset --hard HEAD
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
- name: Setup Zig
|
- name: Setup Zig
|
||||||
run: |
|
run: |
|
||||||
zig version
|
zig version
|
||||||
# - name: Checkout
|
- name: Clone mach-glfw
|
||||||
# uses: actions/checkout@v2
|
run: rm libs/mach-glfw && git clone https://github.com/hexops/mach-glfw libs/mach-glfw
|
||||||
# - name: Setup Zig
|
- name: install
|
||||||
# run: |
|
run: zig build install -Dfrom-source=true
|
||||||
# zig version
|
env:
|
||||||
# - name: Clone mach-glfw
|
AGREE: true
|
||||||
# run: rm libs/mach-glfw && git clone https://github.com/hexops/mach-glfw libs/mach-glfw
|
- name: upload
|
||||||
# - name: install
|
run: |
|
||||||
# run: zig build install -Dfrom-source=true
|
mv zig-out/lib/libdawn.a zig-out/lib/libdawn_macos-aarch64.a
|
||||||
# env:
|
gzip -9 zig-out/lib/libdawn_macos-aarch64.a
|
||||||
# AGREE: true
|
gh release upload "release-$(git rev-parse --short HEAD)" zig-out/lib/libdawn_macos-aarch64.a.gz
|
||||||
# - name: upload
|
env:
|
||||||
# run: |
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# mv zig-out/lib/libdawn.a zig-out/lib/libdawn_macos-aarch64.a
|
|
||||||
# gzip -9 zig-out/lib/libdawn_macos-aarch64.a
|
|
||||||
# gh release upload "release-$(git rev-parse --short HEAD)" zig-out/lib/libdawn_macos-aarch64.a.gz
|
|
||||||
# env:
|
|
||||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue