1414 CC : gcc
1515 ZIPNAME : v_linux.zip
1616 steps :
17- - uses : actions/checkout@v1
17+ - uses : actions/checkout@v4
1818 - name : Compile
1919 run : |
2020 make
4646 CC : clang
4747 ZIPNAME : v_macos_x86_64.zip
4848 steps :
49- - uses : actions/checkout@v1
49+ - uses : actions/checkout@v4
5050 - name : Compile
5151 run : |
5252 make
@@ -69,23 +69,23 @@ jobs:
6969 - name : Create artifact
7070 uses : actions/upload-artifact@v3
7171 with :
72- name : macos
72+ name : macos_x86_64
7373 path : ${{ env.ZIPNAME }}
74-
74+
7575 build-macos-arm64 :
7676 runs-on : macos-latest
7777 env :
78- CC : clang
7978 TARGET_CFLAGS : -target arm64-apple-darwin
79+ VFLAGS : -skip-unused -cc clang
8080 ZIPNAME : v_macos_arm64.zip
8181 steps :
82- - uses : actions/checkout@v1
82+ - uses : actions/checkout@v4
8383 - name : Compile
8484 run : |
8585 make
86- ./v -skip-unused -cc $CC - cflags "$TARGET_CFLAGS" -prod cmd/tools/vup.v
87- ./v -skip-unused -cc $CC - cflags "$TARGET_CFLAGS" -prod cmd/tools/vdoctor.v
88- ./v -skip-unused -cc $CC - cflags "$TARGET_CFLAGS" -prod -o v cmd/v
86+ ./v -cflags "$TARGET_CFLAGS" -prod cmd/tools/vup.v
87+ ./v -cflags "$TARGET_CFLAGS" -prod cmd/tools/vdoctor.v
88+ ./v -cflags "$TARGET_CFLAGS" -prod -o v cmd/v
8989 - name : Remove excluded
9090 run : |
9191 rm -rf .git/
@@ -102,7 +102,7 @@ jobs:
102102 - name : Create artifact
103103 uses : actions/upload-artifact@v3
104104 with :
105- name : macos
105+ name : macos_arm64
106106 path : ${{ env.ZIPNAME }}
107107
108108 build-windows :
@@ -111,7 +111,7 @@ jobs:
111111 CC : msvc
112112 ZIPNAME : v_windows.zip
113113 steps :
114- - uses : actions/checkout@v1
114+ - uses : actions/checkout@v4
115115 - uses : msys2/setup-msys2@v2
116116 - name : Compile needed executables with -prod
117117 run : |
@@ -172,9 +172,9 @@ jobs:
172172 runs-on : ubuntu-20.04
173173 strategy :
174174 matrix :
175- version : [linux, macos, windows ]
175+ version : [windows, linux, macos_arm64, macos_x86_64 ]
176176 steps :
177- - uses : actions/checkout@v1
177+ - uses : actions/checkout@v4
178178 - name : Fetch artifacts
179179 uses : actions/download-artifact@v1
180180 with :
0 commit comments