Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some issues with the CI #270

Merged
merged 1 commit into from
Jan 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 4 additions & 26 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,10 @@ jobs:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-22.04, windows-latest]
rust: [nightly, stable]
rust: [stable]
features: ["", "--features 'chains sm-winit sm-raw-window-handle'"]
target: ["default"]
include:
# rust nightly
- os: ubuntu-22.04
features: "--features 'chains sm-wayland-default'"
rust: nightly-2023-02-01
target: "default"
- os: ubuntu-22.04
target: "arm-linux-androideabi"
rust: nightly-2023-02-01
- os: windows-latest
features: "--features sm-angle-builtin"
rust: nightly-2023-02-01
target: "default"
- os: windows-latest
features: "--features 'chains sm-no-wgl sm-angle-builtin'"
rust: nightly-2023-02-01
target: "default"
- os: windows-latest
target: "aarch64-pc-windows-msvc"
rust: nightly-2023-02-01
# rust stable
- os: ubuntu-22.04
features: "--features sm-wayland-default"
Expand All @@ -60,10 +41,6 @@ jobs:
- os: windows-latest
target: "aarch64-pc-windows-msvc"
rust: stable
# nightly only
- os: windows-latest
target: "aarch64-uwp-windows-msvc"
rust: nightly-2023-02-01
steps:
- uses: actions/checkout@v4
- name: Install deps on linux
Expand Down Expand Up @@ -97,10 +74,11 @@ jobs:
name: Result
runs-on: ubuntu-latest
needs: ["Build"]
if: always()
steps:
- name: Mark the job as successful
if: ${{ !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }}
run: exit 0
if: success()
- name: Mark the job as unsuccessful
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: exit 1
if: "!success()"