GitHub Workflow: (#2106)
- Switched from windows-2019 to windows-2022 - Switched to ubuntu-24.04-arm image for Linux aarch64 jobs - Fixed Linux x86 job. It was failing but not reported - Switched from Visual Studio 16 2019 generators to Visual Studio 17 2022 - Uncommented Windows MINGW32 static and shared jobs - Generic clean-up
This commit is contained in:
90
.github/workflows/Crate-publishing.yml
vendored
90
.github/workflows/Crate-publishing.yml
vendored
@@ -26,58 +26,58 @@ jobs:
|
||||
matrix:
|
||||
config:
|
||||
- {
|
||||
os: windows-2019,
|
||||
arch: x64,
|
||||
name: 'Windows x86_64'
|
||||
}
|
||||
os: windows-2022,
|
||||
arch: x64,
|
||||
name: 'Windows x86_64'
|
||||
}
|
||||
- {
|
||||
os: windows-2019,
|
||||
arch: x86,
|
||||
name: 'Windows x86'
|
||||
}
|
||||
os: windows-2022,
|
||||
arch: x86,
|
||||
name: 'Windows x86'
|
||||
}
|
||||
- {
|
||||
os: ubuntu-latest,
|
||||
arch: x64,
|
||||
name: 'Ubuntu x86_64'
|
||||
}
|
||||
os: ubuntu-latest,
|
||||
arch: x64,
|
||||
name: 'Ubuntu x86_64'
|
||||
}
|
||||
- {
|
||||
os: macos-latest,
|
||||
arch: x64,
|
||||
name: 'macOS x86_64'
|
||||
}
|
||||
os: macos-latest,
|
||||
arch: x64,
|
||||
name: 'macOS x86_64'
|
||||
}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: '🛠️ Set up Rust'
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
- name: '🛠️ Set up Rust'
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
- name: '🛠️ Activate Developer Command Prompt'
|
||||
if: contains(matrix.config.os, 'win')
|
||||
uses: ilammy/msvc-dev-cmd@v1
|
||||
with:
|
||||
arch: ${{ matrix.config.arch }}
|
||||
- name: '🛠️ Activate Developer Command Prompt'
|
||||
if: contains(matrix.config.os, 'win')
|
||||
uses: ilammy/msvc-dev-cmd@v1
|
||||
with:
|
||||
arch: ${{ matrix.config.arch }}
|
||||
|
||||
- name: '🛠️ Win build dependencies'
|
||||
if: contains(matrix.config.os, 'win')
|
||||
shell: bash
|
||||
run: |
|
||||
choco install ninja
|
||||
- name: '🛠️ Win build dependencies'
|
||||
if: contains(matrix.config.os, 'win')
|
||||
shell: bash
|
||||
run: |
|
||||
choco install ninja
|
||||
|
||||
- name: '🛠️ macOS build dependencies'
|
||||
if: contains(matrix.config.os, 'macOS')
|
||||
shell: bash
|
||||
run: |
|
||||
brew install ninja
|
||||
- name: '🛠️ macOS build dependencies'
|
||||
if: contains(matrix.config.os, 'macOS')
|
||||
shell: bash
|
||||
run: |
|
||||
brew install ninja
|
||||
|
||||
- name: '🚧 Cargo test'
|
||||
if: "!startsWith(github.ref, 'refs/tags')"
|
||||
run: |
|
||||
cargo test
|
||||
- name: '🚧 Cargo test'
|
||||
if: "!startsWith(github.ref, 'refs/tags')"
|
||||
run: |
|
||||
cargo test
|
||||
|
||||
- name: '📦 Cargo Publish'
|
||||
if: startsWith(github.ref, 'refs/tags') && !startsWith(github.ref, 'refs/tags/v') && contains(matrix.config.os, 'ubuntu')
|
||||
env:
|
||||
TOKEN: ${{ secrets.cratesio_token }}
|
||||
UNICORN_VERSION: dev
|
||||
run: |
|
||||
cargo login $TOKEN && cargo test && cargo publish
|
||||
- name: '📦 Cargo Publish'
|
||||
if: startsWith(github.ref, 'refs/tags') && !startsWith(github.ref, 'refs/tags/v') && contains(matrix.config.os, 'ubuntu')
|
||||
env:
|
||||
TOKEN: ${{ secrets.cratesio_token }}
|
||||
UNICORN_VERSION: dev
|
||||
run: |
|
||||
cargo login $TOKEN && cargo test && cargo publish
|
||||
|
||||
Reference in New Issue
Block a user