-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Code cleanup, remove arm mac build (#216)
* more code cleanup * remove mac aarch from build for now * gh actions * fix gh action
- Loading branch information
Showing
12 changed files
with
80 additions
and
94 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,13 +17,11 @@ jobs: | |
fail-fast: true | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
target: [x86_64-unknown-linux-gnu, x86_64-apple-darwin, aarch64-apple-darwin] | ||
target: [x86_64-unknown-linux-gnu, x86_64-apple-darwin] | ||
rust: [stable] | ||
exclude: | ||
- os: ubuntu-latest | ||
target: x86_64-apple-darwin | ||
- os: ubuntu-latest | ||
target: aarch64-apple-darwin | ||
- os: macos-latest | ||
target: x86_64-unknown-linux-gnu | ||
env: | ||
|
@@ -52,25 +50,27 @@ jobs: | |
- name: Install Rust Toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
target: ${{ matrix.target }} | ||
override: true | ||
components: rust-src | ||
- name: Install Cargo Plugins | ||
run: cargo install sqlx-cli | ||
uses: actions-rs/[email protected] | ||
with: | ||
crate: sqlx-cli | ||
version: latest | ||
use-tool-cache: true | ||
- name: Create db file | ||
run: "touch /tmp/data.db && cd hifirs && cargo sqlx database reset -y" | ||
env: | ||
env: | ||
DATABASE_URL: "sqlite:///tmp/data.db" | ||
- name: Build ${{ matrix.target }} | ||
uses: actions-rs/cargo@v1 | ||
env: | ||
PKG_CONFIG_ALLOW_CROSS: 1 | ||
SQLITE3_STATIC: true | ||
PKG_CONFIG_ALL_STATIC: true | ||
DATABASE_URL: "sqlite:///tmp/data.db" | ||
with: | ||
use-cross: true | ||
command: build | ||
args: --bin hifi-rs --release --target=${{ matrix.target }} | ||
- name: Tar hifi-rs-${{ matrix.target }}.tar.gz | ||
|
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
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
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
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
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
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
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
Oops, something went wrong.