Skip to content

Commit

Permalink
remove magic from all workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed Jun 24, 2023
1 parent a6eb799 commit 7b63e15
Show file tree
Hide file tree
Showing 13 changed files with 29 additions and 69 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/macOS-arm64-selfhosted-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ jobs:
with:
submodules: recursive
ref: ${{ needs.analyze-tags.outputs.previous-tag }}
- name: Install libmagic on linux
if: ${{ matrix.job.os-name == 'linux' }}
run: |
sudo apt-get install libmagic1 libmagic-dev
- name: build prep for x86_64-unknown-linux-musl
if: ${{ matrix.job.musl-prep }}
run: |
Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/publish-linux-glibc-231-musl-1124.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,20 @@ jobs:
os-name: linux
target: x86_64-unknown-linux-gnu
architecture: x86_64
addl-build-args: --features=apply,generate,luau,fetch,foreach,self_update,magic,polars
addl-build-args: --features=apply,generate,luau,fetch,foreach,self_update,polars
default-features:
addl-qsvlite-features: magic
addl-qsvdp-features: luau,magic
addl-qsvlite-features:
addl-qsvdp-features: luau
name-suffix: glibc-2.31
- os: ubuntu-20.04
os-name: linux
target: x86_64-unknown-linux-musl
architecture: x86_64
musl-prep: true
addl-build-args: --features=apply,generate,fetch,foreach,self_update,magic
addl-build-args: --features=apply,generate,fetch,foreach,self_update
default-features:
addl-qsvlite-features: magic
addl-qsvdp-features: magic
addl-qsvlite-features:
addl-qsvdp-features:
name-suffix: musl-1.1.24

steps:
Expand All @@ -62,10 +62,6 @@ jobs:
with:
submodules: recursive
ref: ${{ needs.analyze-tags.outputs.previous-tag }}
- name: Install libmagic on linux
if: ${{ matrix.job.os-name == 'linux' }}
run: |
sudo apt-get install libmagic1 libmagic-dev
- name: build prep for x86_64-unknown-linux-musl
if: ${{ matrix.job.musl-prep }}
run: |
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/publish-nightly-glibc-231-musl-1124.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ jobs:
os-name: linux
target: x86_64-unknown-linux-gnu
architecture: x86_64
addl-build-args: --features=apply,generate,luau,fetch,foreach,nightly,self_update,magic,polars
addl-build-args: --features=apply,generate,luau,fetch,foreach,nightly,self_update,polars
default-features:
addl-qsvlite-features: magic
addl-qsvdp-features: luau,magic
addl-qsvlite-features:
addl-qsvdp-features: luau
name-suffix: glibc-2.31
- os: ubuntu-20.04
os-name: linux
Expand All @@ -45,8 +45,8 @@ jobs:
musl-prep: true
addl-build-args: --features=apply,generate,fetch,foreach,nightly,self_update,polars
default-features:
addl-qsvlite-features: magic
addl-qsvdp-features: magic
addl-qsvlite-features:
addl-qsvdp-features:
name-suffix: musl-1.1.24

steps:
Expand All @@ -64,10 +64,6 @@ jobs:
with:
submodules: recursive
ref: ${{ needs.analyze-tags.outputs.previous-tag }}
- name: Install libmagic on linux
if: ${{ matrix.job.os-name == 'linux' }}
run: |
sudo apt-get install libmagic1 libmagic-dev
- name: build prep for x86_64-unknown-linux-musl
if: ${{ matrix.job.musl-prep }}
run: |
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/publish-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ jobs:
os-name: linux
target: x86_64-unknown-linux-gnu
architecture: x86_64
addl-build-args: --features=apply,generate,luau,fetch,foreach,nightly,self_update,magic,polars
addl-build-args: --features=apply,generate,luau,fetch,foreach,nightly,self_update,polars
default-features:
addl-qsvlite-features: magic
addl-qsvdp-features: luau,magic
addl-qsvlite-features:
addl-qsvdp-features: luau
# - os: ubuntu-latest
# os-name: linux
# target: x86_64-unknown-linux-musl
Expand Down Expand Up @@ -84,10 +84,6 @@ jobs:
with:
submodules: recursive
ref: ${{ needs.analyze-tags.outputs.previous-tag }}
- name: Install libmagic on linux
if: ${{ matrix.job.os-name == 'linux' }}
run: |
sudo apt-get install libmagic1 libmagic-dev
- name: build prep for x86_64-unknown-linux-musl
if: ${{ matrix.job.musl-prep }}
run: |
Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,20 @@ jobs:
target: x86_64-unknown-linux-gnu
architecture: x86_64
use-cross: false
addl-build-args: --features=apply,generate,luau,fetch,foreach,self_update,magic,polars
addl-build-args: --features=apply,generate,luau,fetch,foreach,self_update,polars
default-features:
addl-qsvlite-features: magic
addl-qsvdp-features: luau,magic
addl-qsvlite-features:
addl-qsvdp-features: luau
- os: ubuntu-22.04
os-name: linux
target: x86_64-unknown-linux-musl
architecture: x86_64
musl-prep: true
use-cross: false
addl-build-args: --features=apply,generate,fetch,foreach,self_update,magic
addl-build-args: --features=apply,generate,fetch,foreach,self_update
default-features:
addl-qsvlite-features: magic
addl-qsvdp-features: magic
addl-qsvlite-features:
addl-qsvdp-features:
- os: ubuntu-22.04
os-name: linux
target: i686-unknown-linux-gnu
Expand Down Expand Up @@ -142,10 +142,6 @@ jobs:
with:
submodules: recursive
ref: ${{ needs.analyze-tags.outputs.previous-tag }}
- name: Install libmagic on linux
if: ${{ matrix.job.os-name == 'linux' }}
run: |
sudo apt-get install libmagic1 libmagic-dev
- name: build prep for x86_64-unknown-linux-musl
if: ${{ matrix.job.musl-prep }}
run: |
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/rust-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,9 @@ jobs:
- uses: actions/[email protected]
with:
python-version: '3.11'
- name: Install libmagic
run: |
sudo apt-get install libmagic1 libmagic-dev
- name: Update Rust Beta
run: |
rustup update beta
rustup default beta
- name: Run tests
run: cargo test --verbose --features feature_capable,apply,fetch,generate,foreach,python,luau,magic,polars
run: cargo test --verbose --features feature_capable,apply,fetch,generate,foreach,python,luau,polars
2 changes: 1 addition & 1 deletion .github/workflows/rust-nightly-bleeding-edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:
override: true
default: true
- name: Run tests
run: cargo test --verbose --locked --features=apply,fetch,foreach,generate,luau,python,feature_capable,nightly,magic,polars
run: cargo test --verbose --locked --features=apply,fetch,foreach,generate,luau,python,feature_capable,nightly,polars
5 changes: 1 addition & 4 deletions .github/workflows/rust-qsvdp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,9 @@ jobs:
- uses: actions/checkout@v3
- name: Update Rust
run: rustup update
- name: Install libmagic
run: |
sudo apt-get install libmagic1 libmagic-dev
- name: Setup Rust-cache
uses: Swatinem/rust-cache@v2
with:
key: qsvdp-cache
- name: Run tests
run: cargo test --verbose --locked --features=datapusher_plus,luau,magic
run: cargo test --verbose --locked --features=datapusher_plus,luau
5 changes: 1 addition & 4 deletions .github/workflows/rust-qsvlite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,9 @@ jobs:
- uses: actions/checkout@v3
- name: Update Rust
run: rustup update
- name: Install libmagic
run: |
sudo apt-get install libmagic1 libmagic-dev
- name: Setup Rust-cache
uses: Swatinem/rust-cache@v2
with:
key: qsvlite-cache
- name: Run tests
run: cargo test --verbose --locked --features=lite,magic
run: cargo test --verbose --locked --features=lite
5 changes: 1 addition & 4 deletions .github/workflows/rust-to.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,11 @@ jobs:
run: |
sudo apt-get update
- uses: actions/checkout@v3
- name: Install libmagic
run: |
sudo apt-get install libmagic1 libmagic-dev
- name: Update Rust
run: rustup update
- name: Setup Rust-cache
uses: Swatinem/rust-cache@v2
with:
key: qsvto-cache
- name: Run tests
run: cargo test --verbose --locked --features=magic,to,feature_capable
run: cargo test --verbose --locked --features=to,feature_capable
5 changes: 1 addition & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ jobs:
- uses: actions/[email protected]
with:
python-version: '3.11'
- name: Install libmagic
run: |
sudo apt-get install libmagic1 libmagic-dev
- name: Install and Run Redis
run: |
sudo apt-get install redis-server
Expand All @@ -41,4 +38,4 @@ jobs:
with:
key: qsv-cache
- name: Run tests
run: cargo test --verbose --locked --features=apply,fetch,foreach,generate,luau,python,magic,polars,feature_capable
run: cargo test --verbose --locked --features=apply,fetch,foreach,generate,luau,python,polars,feature_capable
2 changes: 1 addition & 1 deletion .github/workflows/test-publish-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
architecture: x86_64
addl-build-args: --features=apply,generate,luau,fetch,foreach,nightly,to,self_update,polars
default-features:
addl-qsvdp-features: luau,magic
addl-qsvdp-features: luau
# - os: ubuntu-latest
# os-name: linux
# target: x86_64-unknown-linux-musl
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
target: x86_64-unknown-linux-gnu
architecture: x86_64
use-cross: false
addl-build-args: --features=apply,generate,luau,fetch,foreach,self_update,to,magic
addl-build-args: --features=apply,generate,luau,fetch,foreach,self_update,to
default-features:
addl-qsvdp-features: luau
- os: ubuntu-latest
Expand All @@ -28,7 +28,7 @@ jobs:
architecture: x86_64
musl-prep: true
use-cross: false
addl-build-args: --features=apply,generate,fetch,foreach,self_update,magic
addl-build-args: --features=apply,generate,fetch,foreach,self_update
default-features:
addl-qsvdp-features:
- os: ubuntu-latest
Expand Down Expand Up @@ -126,11 +126,6 @@ jobs:
run: |
sudo apt-get install musl-tools musl-dev
sudo ln -s /usr/bin/g++ /usr/bin/musl-g++
- name: set MAGIC_STATIC false when cross-compiling
if: ${{ matrix.job.use-cross }}
env:
MAGIC_STATIC: false
uses: actions-rs/cargo@v1
- name: Build qsv
env:
RUSTFLAGS: --emit=asm
Expand Down

0 comments on commit 7b63e15

Please sign in to comment.