Skip to content

Commit

Permalink
Merge pull request #92 from arkedge/feature/build-examples-for-32bit
Browse files Browse the repository at this point in the history
Build C2A example users for i686 target
  • Loading branch information
sksat authored Sep 19, 2023
2 parents db781dc + 1c94e67 commit 85901a5
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[build]
target = "i686-unknown-linux-gnu"
6 changes: 6 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ jobs:
with:
submodules: recursive

- name: install dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y gcc-multilib g++-multilib
- name: setup c2a-core
run: ./setup.sh

Expand All @@ -61,6 +66,7 @@ jobs:

- uses: dtolnay/rust-toolchain@stable
with:
targets: i686-unknown-linux-gnu
components: clippy, rustfmt

- name: cache Rust dependencies
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,15 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: install dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y gcc-multilib g++-multilib
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
targets: i686-unknown-linux-gnu
components: clippy, rustfmt

- name: cache dependencies
Expand Down
2 changes: 2 additions & 0 deletions examples/mobc/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[build]
target = "i686-unknown-linux-gnu"
2 changes: 2 additions & 0 deletions examples/subobc/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[build]
target = "i686-unknown-linux-gnu"

0 comments on commit 85901a5

Please sign in to comment.