Skip to content

Update ci.yml for Arm macs #496

Update ci.yml for Arm macs

Update ci.yml for Arm macs #496

Workflow file for this run

name: CI
on:
push:
branches: [master, stable]
pull_request:
branches: [master, stable]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test_windows:
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: 11
- name: install prereqs
run: cmd /c '.\scripts\windows\install-compiler-prereqs.bat C:\LLVM16 C:\BootstrappingValeCompiler'
- name: run vcvars and build-compiler-windows.bat
run: cmd /c '"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" && .\scripts\windows\build-compiler.bat C:\LLVM16 C:\BootstrappingValeCompiler --test=all scripts\VERSION'
- uses: actions/upload-artifact@v2
with:
name: Vale-Windows-0.zip
path: .\release-windows\Vale-Windows-0.zip
build_and_test_docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build docker image
run: docker build -t valec --build-arg VALE_DIR=. --file scripts/docker/Dockerfile .
- name: Create image
run: docker create --name bork -i valec
- name: Retrieve built compiler
run: docker cp bork:/Vale/release-ubuntu/Vale-Ubuntu-0.zip Vale-Ubuntu-0.zip
- uses: actions/upload-artifact@v2
with:
name: Vale-Ubuntu-0-From-Docker.zip
path: Vale-Ubuntu-0.zip
build_and_test_ubuntu:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: 11
- name: install prereqs
run: ./scripts/ubuntu/install-compiler-prereqs.sh -d -j -s -l ~/LLVMForVale -b ~/BootstrappingValeCompiler
- name: build compiler
run: ./scripts/ubuntu/build-compiler.sh ~/LLVMForVale/clang+llvm-16.0.0-x86_64-linux-gnu-ubuntu-18.04 ~/BootstrappingValeCompiler --test=all ./scripts/VERSION
- name: gimme files
run: find . -print
- uses: actions/upload-artifact@v2
with:
name: Vale-Ubuntu-0.zip
path: ./release-ubuntu/Vale-Ubuntu-0.zip
build_and_test_mac_intel:
runs-on: macOS-13
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: 11
- name: install prereqs
run: ./scripts/mac/install-compiler-prereqs.sh ~/BootstrappingValeCompiler
- name: build compiler
run: ./scripts/mac/build-compiler.sh ~/BootstrappingValeCompiler --test=all ./scripts/VERSION
- uses: actions/upload-artifact@v2
with:
name: Vale-Mac-0.zip
path: ./release-mac/Vale-Mac-Intel-0.zip
build_and_test_mac_arm:
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: 11
- name: install prereqs
run: ./scripts/mac/install-compiler-prereqs.sh ~/BootstrappingValeCompiler
- name: build compiler
run: ./scripts/mac/build-compiler.sh ~/BootstrappingValeCompiler --test=all ./scripts/VERSION
- uses: actions/upload-artifact@v2
with:
name: Vale-Mac-0.zip
path: ./release-mac/Vale-Mac-Arm-0.zip