rtl8139: Refactor driver to be instantiated as an Arc (Fixes problems… #120
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-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install packages | |
uses: amitie10g/[email protected] | |
with: | |
apt: build-essential nasm | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
toolchain: "nightly-2024-11-21" | |
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: Cleanup towbootctl | |
run: rm -f towbootctl | |
- 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-macos: | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install packages | |
uses: amitie10g/[email protected] | |
with: | |
brew: x86_64-elf-binutils x86_64-elf-gcc nasm | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
toolchain: "nightly-2024-11-21" | |
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: Cleanup towbootctl | |
run: rm -f towbootctl | |
- name: Build | |
uses: clechasseur/rs-cargo@v2 | |
with: | |
command: make | |
args: --no-workspace image |