Makefile.toml: Download 'towbootctl' from GitHub releases #71
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: [push] | |
jobs: | |
build-on-linux: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install packages | |
uses: amitie10g/install-package@v1.2.3 | |
with: | |
apt: build-essential nasm | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: "rust-src" | |
- name: Cache Cargo | |
uses: Swatinem/rust-cache@v2 | |
with: | |
shared-key: cargo-${{ hashFiles('**/Cargo.lock') }} | |
cache-all-crates: true | |
cache-on-failure: true | |
- name: Install cargo-make | |
run: cargo install --no-default-features cargo-make | |
- name: Build | |
uses: clechasseur/rs-cargo@v2 | |
with: | |
command: make | |
args: --no-workspace image | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: D3OS | |
path: d3os.img | |
build-on-intel-mac: | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install packages | |
uses: amitie10g/install-package@v1.2.3 | |
with: | |
brew: x86_64-elf-binutils nasm | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: "rust-src" | |
- name: Cache Cargo | |
uses: Swatinem/rust-cache@v2 | |
with: | |
shared-key: cargo-${{ hashFiles('**/Cargo.lock') }} | |
cache-all-crates: true | |
cache-on-failure: true | |
- name: Install cargo-make | |
run: cargo install --no-default-features cargo-make | |
- name: Build | |
uses: clechasseur/rs-cargo@v2 | |
with: | |
command: make | |
args: --no-workspace image | |
build-on-apple-silicon-mac: | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install packages | |
uses: amitie10g/install-package@v1.2.3 | |
with: | |
brew: x86_64-elf-binutils nasm | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: "rust-src" | |
- name: Cache Cargo | |
uses: Swatinem/rust-cache@v2 | |
with: | |
shared-key: cargo-${{ hashFiles('**/Cargo.lock') }} | |
cache-all-crates: true | |
cache-on-failure: true | |
- name: Install cargo-make | |
run: cargo install --no-default-features cargo-make | |
- name: Build | |
uses: clechasseur/rs-cargo@v2 | |
with: | |
command: make | |
args: --no-workspace image |