Skip to content

build: add CI

build: add CI #6

name: Rust Compiler Builder
on:
push:
schedule:
# https://crontab.guru/
# At 12:00 AM, only on Monday
- cron: 0 0 * * 1
jobs:
build:
strategy:
matrix:
os: [
# macos-11,
# macos-12,
macos-13,
]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout Rust
uses: actions/checkout@v4
with:
repository: rust-lang/rust
submodules: true
path: rust
- name: Configure Rust
run: make configure
- name: Build Rust
run: make all
working-directory: ./rust
- name: Build Rust tarballs
run: make dist
working-directory: ./rust
- name: Run tests
run: make check
working-directory: ./rust
- name: Archive tarballs
uses: actions/upload-artifact@v3
with:
path: "**/*.xz"