Skip to content

Commit

Permalink
Add GitHub Actions configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
dns13 committed Mar 4, 2024
1 parent 9758b66 commit 79b4072
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Build
on: [push]
jobs:
arm-bemos-linux-musleabihf:
runs-on: ubuntu-latest
container: ghcr.io/bestsens/musl-build-image:latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup cache
uses: actions/cache@v4
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Setup
run: |
rustup default stable
rustup target add armv7-unknown-linux-musleabihf
- name: Build
env:
CC: arm-bemos-linux-musleabihf-gcc
run: |
cargo build --release --target=armv7-unknown-linux-musleabihf
- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: armv7
path: |
target/armv7-unknown-linux-musleabihf/release/bone_shell
LICENSE
x86_64-linux-gnu:
runs-on: ubuntu-latest
container: rust:latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup cache
uses: actions/cache@v4
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Build
run: |
cargo build --release
- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: x86_64
path: |
target/release/bone_shell
LICENSE

0 comments on commit 79b4072

Please sign in to comment.