Skip to content

Commit

Permalink
build: add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
arttet committed Dec 8, 2023
1 parent 0bb2126 commit db8de2e
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
81 changes: 81 additions & 0 deletions .github/workflows/rust-compiler-builder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: Rust Compiler Builder

on:
push:
paths-ignore:
- '**/README.md'
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 dists
run: make dist
working-directory: ./rust

# - name: Run tests
# run: make check
# working-directory: ./rust

# - name: Archive Rust dist
# uses: actions/upload-artifact@v3
# with:
# path: ./rust/build/dist/*.xz

- name: Upload x86_64-apple-darwin
uses: actions/upload-artifact@v3
with:
name: x86_64-apple-darwin
path: ./rust/build/dist/*x86_64-apple-darwin.tar.xz

- name: Upload aarch64-apple-darwin
uses: actions/upload-artifact@v3
with:
name: aarch64-apple-darwin
path: ./rust/build/dist/*aarch64-apple-darwin.tar.xz

- name: Upload aarch64-apple-ios
uses: actions/upload-artifact@v3
with:
name: aarch64-apple-ios
path: ./rust/build/dist/*aarch64-apple-ios.tar.xz

- name: Upload arm64e-apple-darwin
uses: actions/upload-artifact@v3
with:
name: arm64e-apple-darwin
path: ./rust/build/dist/*arm64e-apple-darwin.tar.xz

- name: Upload arm64e-apple-ios
uses: actions/upload-artifact@v3
with:
name: arm64e-apple-ios
path: ./rust/build/dist/*arm64e-apple-ios.tar.xz

0 comments on commit db8de2e

Please sign in to comment.