diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..253bcb7 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: daily diff --git a/.github/workflows/rust-compiler-builder.yml b/.github/workflows/rust-compiler-builder.yml new file mode 100644 index 0000000..03fcc0a --- /dev/null +++ b/.github/workflows/rust-compiler-builder.yml @@ -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