Run Gitea workflows on Ubuntu only
This commit is contained in:
@@ -6,11 +6,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deterministic:
|
deterministic:
|
||||||
strategy:
|
runs-on: ubuntu-latest
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
|
|||||||
@@ -6,11 +6,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
native:
|
native:
|
||||||
strategy:
|
runs-on: ubuntu-latest
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
env:
|
env:
|
||||||
RUSTDOCFLAGS: -D warnings
|
RUSTDOCFLAGS: -D warnings
|
||||||
steps:
|
steps:
|
||||||
@@ -44,5 +40,4 @@ jobs:
|
|||||||
cargo clippy -p libremetaverse-imaging -p libremetaverse-imaging-skia -p libremetaverse-prim-mesher --all-targets -- -D warnings
|
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
|
cargo doc -p libremetaverse-imaging -p libremetaverse-imaging-skia -p libremetaverse-prim-mesher --no-deps
|
||||||
- name: Verify formatting
|
- name: Verify formatting
|
||||||
if: runner.os == 'Linux'
|
|
||||||
run: cargo fmt --all -- --check
|
run: cargo fmt --all -- --check
|
||||||
|
|||||||
@@ -23,31 +23,3 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cargo test -p libremetaverse-imaging --features jpeg2000
|
cargo test -p libremetaverse-imaging --features jpeg2000
|
||||||
cargo check -p libremetaverse --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 --no-default-features
|
||||||
cargo test -p libremetaverse-imaging-skia --features skia
|
cargo test -p libremetaverse-imaging-skia --features skia
|
||||||
cargo package -p libremetaverse-imaging-skia --list
|
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
|
|
||||||
|
|||||||
@@ -1 +1,2 @@
|
|||||||
All code and API mappings must be cross-platform; do not use macOS-only APIs unless equivalent Linux and Windows implementations are provided.
|
All code and API mappings must be cross-platform; do not use macOS-only APIs unless equivalent Linux and Windows implementations are provided.
|
||||||
|
Gitea Actions workflows must target only `ubuntu-latest`; do not add macOS or Windows Gitea jobs.
|
||||||
|
|||||||
Reference in New Issue
Block a user