Run Gitea workflows on Ubuntu only
This commit is contained in:
@@ -6,11 +6,7 @@ on:
|
||||
|
||||
jobs:
|
||||
deterministic:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
@@ -6,11 +6,7 @@ on:
|
||||
|
||||
jobs:
|
||||
native:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
RUSTDOCFLAGS: -D warnings
|
||||
steps:
|
||||
@@ -44,5 +40,4 @@ jobs:
|
||||
cargo clippy -p libremetaverse-imaging -p libremetaverse-imaging-skia -p libremetaverse-prim-mesher --all-targets -- -D warnings
|
||||
cargo doc -p libremetaverse-imaging -p libremetaverse-imaging-skia -p libremetaverse-prim-mesher --no-deps
|
||||
- name: Verify formatting
|
||||
if: runner.os == 'Linux'
|
||||
run: cargo fmt --all -- --check
|
||||
|
||||
@@ -23,31 +23,3 @@ jobs:
|
||||
run: |
|
||||
cargo test -p libremetaverse-imaging --features jpeg2000
|
||||
cargo check -p libremetaverse --features jpeg2000
|
||||
|
||||
macos:
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- name: Install OpenJPEG
|
||||
run: brew install openjpeg pkg-config
|
||||
- name: Build and test optional feature
|
||||
run: |
|
||||
cargo test -p libremetaverse-imaging --features jpeg2000
|
||||
cargo check -p libremetaverse --features jpeg2000
|
||||
|
||||
windows:
|
||||
runs-on: windows-latest
|
||||
env:
|
||||
VCPKGRS_DYNAMIC: "1"
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- name: Install OpenJPEG
|
||||
shell: pwsh
|
||||
run: vcpkg install openjpeg:x64-windows
|
||||
- name: Build and test optional feature
|
||||
shell: pwsh
|
||||
run: |
|
||||
cargo test -p libremetaverse-imaging --features jpeg2000
|
||||
cargo check -p libremetaverse --features jpeg2000
|
||||
|
||||
@@ -21,30 +21,3 @@ jobs:
|
||||
cargo test -p libremetaverse-imaging-skia --no-default-features
|
||||
cargo test -p libremetaverse-imaging-skia --features skia
|
||||
cargo package -p libremetaverse-imaging-skia --list
|
||||
|
||||
macos:
|
||||
runs-on: macos-latest
|
||||
env:
|
||||
FORCE_SKIA_BINARIES_DOWNLOAD: "1"
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- name: Test default and Skia feature builds
|
||||
run: |
|
||||
cargo test -p libremetaverse-imaging-skia --no-default-features
|
||||
cargo test -p libremetaverse-imaging-skia --features skia
|
||||
cargo package -p libremetaverse-imaging-skia --list
|
||||
|
||||
windows:
|
||||
runs-on: windows-latest
|
||||
env:
|
||||
FORCE_SKIA_BINARIES_DOWNLOAD: "1"
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- name: Test default and Skia feature builds
|
||||
shell: pwsh
|
||||
run: |
|
||||
cargo test -p libremetaverse-imaging-skia --no-default-features
|
||||
cargo test -p libremetaverse-imaging-skia --features skia
|
||||
cargo package -p libremetaverse-imaging-skia --list
|
||||
|
||||
Reference in New Issue
Block a user