Skip to content

Prevent many crashes caused by unreachable #55

Prevent many crashes caused by unreachable

Prevent many crashes caused by unreachable #55

Workflow file for this run

name: ci
on:
pull_request:
push:
branches:
- master
- llvm19
- 014-dev
- actions-test
concurrency:
# Cancels pending runs when a PR gets updated.
group: ${{ github.head_ref || github.run_id }}-${{ github.actor }}
cancel-in-progress: true
permissions:
# Sets permission policy for `GITHUB_TOKEN`
contents: read
jobs:
build:
runs-on: big-ubuntu
strategy:
matrix:
target:
- x86_64-macos-none
- x86_64-linux-musl
- x86_64-windows-gnu
- aarch64-macos-none
- aarch64-linux-musl
release_flag: ["Doptimize=ReleaseFast"]
strip_flag: ["Dstrip"]
name_append: [""]
include:
- target: aarch64-macos-none
release_flag: "Doptimize=ReleaseSafe"
strip_flag: "Ddebug-extensions"
name_append: "-ReleaseSafe"
steps:
- run: sudo apt-get install -y ninja-build
- uses: actions/checkout@v4
with:
repository: ziglang/zig-bootstrap
ref: 50d8e88ba329b5d58a212f9fd2e9b1ad59a88e7d
- run: rm -rf zig
- uses: actions/checkout@v4
with:
path: zig
- run: sed -i 's/ZIG_VERSION="0.14.0-dev.2257+e6d2e1641"/ZIG_VERSION="0.14.0"/' build
- run: sed -i 's/Doptimize=ReleaseFast/${{ matrix.release_flag }}/' build
- run: sed -i 's/Dstrip/${{ matrix.strip_flag }}/' build
- run: sed -i 's/max_rss = 7_800_000_000/max_rss = 9_000_000_000/' zig/build.zig
- run: cat build
- run: CMAKE_GENERATOR=Ninja ./build ${{ matrix.target }} baseline
- uses: actions/upload-artifact@v4
with:
name: bootstrap-${{ matrix.target }}${{ matrix.name_append }}
path: out/zig-${{ matrix.target }}-baseline
release:
needs: build
permissions:
contents: write
runs-on: big-ubuntu
steps:
- uses: actions/checkout@v4
with:
repository: zigtools/zls
ref: 81407cd41b82a1a450315862897958e62e50e660
- uses: actions/download-artifact@v4
- name: chmod
run: |
chmod +x bootstrap-x86_64-macos-none/zig
chmod +x bootstrap-x86_64-linux-musl/zig
chmod +x bootstrap-x86_64-windows-gnu/zig.exe
chmod +x bootstrap-aarch64-macos-none/zig
chmod +x bootstrap-aarch64-macos-none-ReleaseSafe/zig
chmod +x bootstrap-aarch64-linux-musl/zig
- name: Build ZLS
run: |
./bootstrap-x86_64-linux-musl/zig build -Doptimize=ReleaseSafe -Dtarget=x86_64-macos-none --prefix . --prefix-exe-dir ./bootstrap-x86_64-macos-none &
./bootstrap-x86_64-linux-musl/zig build -Doptimize=ReleaseSafe -Dtarget=x86_64-linux-musl --prefix . --prefix-exe-dir ./bootstrap-x86_64-linux-musl &
./bootstrap-x86_64-linux-musl/zig build -Doptimize=ReleaseSafe -Dtarget=x86_64-windows-gnu --prefix . --prefix-exe-dir ./bootstrap-x86_64-windows-gnu &
./bootstrap-x86_64-linux-musl/zig build -Doptimize=ReleaseSafe -Dtarget=aarch64-macos-none --prefix . --prefix-exe-dir ./bootstrap-aarch64-macos-none &
./bootstrap-x86_64-linux-musl/zig build -Doptimize=ReleaseSafe -Dtarget=aarch64-macos-none --prefix . --prefix-exe-dir ./bootstrap-aarch64-macos-none-ReleaseSafe &
./bootstrap-x86_64-linux-musl/zig build -Doptimize=ReleaseSafe -Dtarget=aarch64-linux-musl --prefix . --prefix-exe-dir ./bootstrap-aarch64-linux-musl &
wait
- name: Compress artifacts
run: |
zip -r bootstrap-x86_64-macos-none.zip bootstrap-x86_64-macos-none &
zip -r bootstrap-x86_64-linux-musl.zip bootstrap-x86_64-linux-musl &
zip -r bootstrap-x86_64-windows-gnu.zip bootstrap-x86_64-windows-gnu &
zip -r bootstrap-aarch64-macos-none.zip bootstrap-aarch64-macos-none &
zip -r bootstrap-aarch64-macos-none-ReleaseSafe.zip bootstrap-aarch64-macos-none-ReleaseSafe &
zip -r bootstrap-aarch64-linux-musl.zip bootstrap-aarch64-linux-musl &
wait
- name: Release
uses: softprops/action-gh-release@v1
id: release
with:
generate_release_notes: true
tag_name: "autobuild-${{github.sha}}"
files: |
bootstrap-x86_64-macos-none.zip
bootstrap-x86_64-linux-musl.zip
bootstrap-x86_64-windows-gnu.zip
bootstrap-aarch64-macos-none.zip
bootstrap-aarch64-macos-none-ReleaseSafe.zip
bootstrap-aarch64-linux-musl.zip