mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
ci: add macos_arm64, macos_x86_64 in more jobs in binary_artifact.yml
This commit is contained in:
parent
a741050ea4
commit
cd337e2e06
1 changed files with 13 additions and 13 deletions
26
.github/workflows/binary_artifact.yml
vendored
26
.github/workflows/binary_artifact.yml
vendored
|
@ -14,7 +14,7 @@ jobs:
|
||||||
CC: gcc
|
CC: gcc
|
||||||
ZIPNAME: v_linux.zip
|
ZIPNAME: v_linux.zip
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v4
|
||||||
- name: Compile
|
- name: Compile
|
||||||
run: |
|
run: |
|
||||||
make
|
make
|
||||||
|
@ -46,7 +46,7 @@ jobs:
|
||||||
CC: clang
|
CC: clang
|
||||||
ZIPNAME: v_macos_x86_64.zip
|
ZIPNAME: v_macos_x86_64.zip
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v4
|
||||||
- name: Compile
|
- name: Compile
|
||||||
run: |
|
run: |
|
||||||
make
|
make
|
||||||
|
@ -69,23 +69,23 @@ jobs:
|
||||||
- name: Create artifact
|
- name: Create artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: macos
|
name: macos_x86_64
|
||||||
path: ${{ env.ZIPNAME }}
|
path: ${{ env.ZIPNAME }}
|
||||||
|
|
||||||
build-macos-arm64:
|
build-macos-arm64:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
env:
|
env:
|
||||||
CC: clang
|
|
||||||
TARGET_CFLAGS: -target arm64-apple-darwin
|
TARGET_CFLAGS: -target arm64-apple-darwin
|
||||||
|
VFLAGS: -skip-unused -cc clang
|
||||||
ZIPNAME: v_macos_arm64.zip
|
ZIPNAME: v_macos_arm64.zip
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v4
|
||||||
- name: Compile
|
- name: Compile
|
||||||
run: |
|
run: |
|
||||||
make
|
make
|
||||||
./v -skip-unused -cc $CC -cflags "$TARGET_CFLAGS" -prod cmd/tools/vup.v
|
./v -cflags "$TARGET_CFLAGS" -prod cmd/tools/vup.v
|
||||||
./v -skip-unused -cc $CC -cflags "$TARGET_CFLAGS" -prod cmd/tools/vdoctor.v
|
./v -cflags "$TARGET_CFLAGS" -prod cmd/tools/vdoctor.v
|
||||||
./v -skip-unused -cc $CC -cflags "$TARGET_CFLAGS" -prod -o v cmd/v
|
./v -cflags "$TARGET_CFLAGS" -prod -o v cmd/v
|
||||||
- name: Remove excluded
|
- name: Remove excluded
|
||||||
run: |
|
run: |
|
||||||
rm -rf .git/
|
rm -rf .git/
|
||||||
|
@ -102,7 +102,7 @@ jobs:
|
||||||
- name: Create artifact
|
- name: Create artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: macos
|
name: macos_arm64
|
||||||
path: ${{ env.ZIPNAME }}
|
path: ${{ env.ZIPNAME }}
|
||||||
|
|
||||||
build-windows:
|
build-windows:
|
||||||
|
@ -111,7 +111,7 @@ jobs:
|
||||||
CC: msvc
|
CC: msvc
|
||||||
ZIPNAME: v_windows.zip
|
ZIPNAME: v_windows.zip
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v4
|
||||||
- uses: msys2/setup-msys2@v2
|
- uses: msys2/setup-msys2@v2
|
||||||
- name: Compile needed executables with -prod
|
- name: Compile needed executables with -prod
|
||||||
run: |
|
run: |
|
||||||
|
@ -172,9 +172,9 @@ jobs:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
version: [linux, macos, windows]
|
version: [windows, linux, macos_arm64, macos_x86_64]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v4
|
||||||
- name: Fetch artifacts
|
- name: Fetch artifacts
|
||||||
uses: actions/download-artifact@v1
|
uses: actions/download-artifact@v1
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue