Update macos runner (#1165)

This commit is contained in:
Lucas 2024-02-02 12:22:30 +08:00 committed by GitHub
parent 044fa731d3
commit d39136fd6b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -249,11 +249,11 @@ jobs:
matrix: matrix:
include: include:
- target: aarch64-apple-darwin - target: aarch64-apple-darwin
os: macOS-latest os: macos-14 # M1 CPU
- target: debian-x86_64 - target: debian-x86_64
os: ubuntu-latest os: ubuntu-latest
- target: x86_64-apple-darwin - target: x86_64-apple-darwin
os: macOS-latest os: macos-12 # x64 CPU
- target: x86_64-pc-windows-msvc - target: x86_64-pc-windows-msvc
os: windows-latest os: windows-latest
ext: '.exe' ext: '.exe'
@ -341,6 +341,7 @@ jobs:
- name: Start HTTP Server (MacOS, no Docker) - name: Start HTTP Server (MacOS, no Docker)
if: runner.os == 'macos' if: runner.os == 'macos'
run: | run: |
mkdir -p /usr/local/etc/nginx
cat << EOF > /usr/local/etc/nginx/nginx.conf cat << EOF > /usr/local/etc/nginx/nginx.conf
worker_processes 1; worker_processes 1;
events { events {