mirror of
https://github.com/jetzig-framework/jetzig.git
synced 2025-05-15 06:26:07 +00:00
Update CI.yml
This commit is contained in:
parent
f165ffe73f
commit
c08fe7c1e9
12
.github/workflows/CI.yml
vendored
12
.github/workflows/CI.yml
vendored
@ -29,7 +29,7 @@ jobs:
|
|||||||
uses: goto-bus-stop/setup-zig@v2.2.0
|
uses: goto-bus-stop/setup-zig@v2.2.0
|
||||||
with:
|
with:
|
||||||
version: master
|
version: master
|
||||||
cache: false
|
cache: true # Let's see how this behaves
|
||||||
|
|
||||||
- run: zig version
|
- run: zig version
|
||||||
- run: zig env
|
- run: zig env
|
||||||
@ -45,14 +45,16 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
declare -a targets=("x86_64-windows" "x86_64-linux" "x86_64-macos" "aarch64-macos")
|
declare -a targets=("x86_64-windows" "x86_64-linux" "x86_64-macos" "aarch64-macos")
|
||||||
mkdir -p "artifacts/"
|
mkdir -p "artifacts/"
|
||||||
|
cd cli
|
||||||
for target in "${targets[@]}"; do
|
for target in "${targets[@]}"; do
|
||||||
mkdir -p artifacts/$target
|
mkdir -p ../artifacts/$target
|
||||||
echo "Building target ${target}..."
|
echo "Building target ${target}..."
|
||||||
zig build -Dtarget=${target} -Doptimize=ReleaseSafe --prefix artifacts/${target}/ &
|
zig build -Dtarget=${target} -Doptimize=ReleaseSafe --prefix ../artifacts/${target}/ &
|
||||||
sed -e '1,5d' < README.md > artifacts/${target}/README.md
|
sed -e '1,5d' < ../README.md > ../artifacts/${target}/README.md
|
||||||
cp LICENSE artifacts/${target}/
|
cp ../LICENSE artifacts/${target}/
|
||||||
done
|
done
|
||||||
wait
|
wait
|
||||||
|
|
||||||
- name: Upload artifacts Target Windows
|
- name: Upload artifacts Target Windows
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user