Skip to content

Commit

Permalink
Replace config.toml with env variables (#1237)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfoerster authored Oct 15, 2024
1 parent c9ee5b1 commit 4a25391
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
5 changes: 0 additions & 5 deletions .cargo/config.toml

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ env:
CI: 1
RUST_BACKTRACE: short
RUSTFLAGS: "-D warnings"
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: "aarch64-linux-gnu-gcc"
CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER: "arm-linux-gnueabihf-gcc"
jobs:
build:
name: Build (${{ matrix.target }})
Expand Down Expand Up @@ -42,11 +44,9 @@ jobs:

- os: ubuntu-20.04
target: aarch64-unknown-linux-gnu
install: sudo apt-get install -y gcc-aarch64-linux-gnu

- os: ubuntu-20.04
target: armv7-unknown-linux-gnueabihf
install: sudo apt-get install -y gcc-arm-linux-gnueabihf

- os: ubuntu-20.04
target: x86_64-unknown-linux-musl
Expand All @@ -57,8 +57,8 @@ jobs:
targets: ${{ matrix.target }}
- uses: Swatinem/rust-cache@v2
- name: Install cross-compilation dependencies
run: ${{ matrix.install }}
if: ${{ matrix.install }}
run: sudo apt-get install -y gcc-aarch64-linux-gnu gcc-arm-linux-gnueabihf
if: ${{ matrix.os == 'ubuntu-20.04' }}
- name: Compile
run: cargo test --target ${{ matrix.target }} --all-features --no-run --locked
- name: Test
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ env:
CI: 1
RUST_BACKTRACE: short
RUSTFLAGS: "-D warnings"
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: "aarch64-linux-gnu-gcc"
CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER: "arm-linux-gnueabihf-gcc"
jobs:
build:
name: Build (${{ matrix.archive }})
Expand Down Expand Up @@ -41,12 +43,10 @@ jobs:
- os: ubuntu-20.04
target: aarch64-unknown-linux-gnu
archive: texlab-aarch64-linux.tar.gz
install: sudo apt-get install -y gcc-aarch64-linux-gnu

- os: ubuntu-20.04
target: armv7-unknown-linux-gnueabihf
archive: texlab-armv7hf-linux.tar.gz
install: sudo apt-get install -y gcc-arm-linux-gnueabihf

- os: ubuntu-20.04
target: x86_64-unknown-linux-musl
Expand All @@ -57,8 +57,8 @@ jobs:
with:
targets: ${{ matrix.target }}
- name: Install cross-compilation dependencies
run: ${{ matrix.install }}
if: ${{ matrix.install }}
run: sudo apt-get install -y gcc-aarch64-linux-gnu gcc-arm-linux-gnueabihf
if: ${{ matrix.os == 'ubuntu-20.04' }}
- name: Compile
run: cargo build --target ${{ matrix.target }} --all-features --release --locked
- name: Compress (Windows)
Expand Down

0 comments on commit 4a25391

Please sign in to comment.