Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
Replace install actions with choco install commands
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul committed Feb 19, 2024
1 parent 3d895cf commit a0373f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/build-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,24 +53,15 @@ jobs:

- name: Set up MinGW
if: matrix.os == 'windows-2022' && matrix.optimizer_backend == 'casadi'
uses: egor-tensin/setup-mingw@v2
with:
platform: x64
version: 11.2.0
static: 0
run: |
choco upgrade mingw --version=11.2.0 -y --no-progress --allow-downgrade
echo C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin >> $env:GITHUB_PATH
- name: Set up Rust
uses: hecrj/setup-rust-action@v1
with:
targets: ${{matrix.rust-target}}

- name: Set up Clang
if: ${{ !startsWith(matrix.os, 'macOS') }}
uses: egor-tensin/setup-clang@v1
with:
version: latest
platform: x64

- name: Build Rust
working-directory: rust
run: cargo build --target ${{ matrix.rust-target }} --features ${{ matrix.optimizer_backend }}
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,9 @@ jobs:

- name: Set up MinGW
if: matrix.os == 'windows-2022' && matrix.optimizer_backend == 'casadi'
uses: egor-tensin/setup-mingw@v2
with:
platform: x64
version: 11.2.0
static: 0
run: |
choco upgrade mingw --version=11.2.0 -y --no-progress --allow-downgrade
echo C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin >> $env:GITHUB_PATH
- name: configure
run: cmake -B build -S . ${{ matrix.cmake-flags }} -DOPTIMIZER_BACKEND=${{ matrix.optimizer_backend }} -DWITH_JAVA=ON -DJAVA_INSTALL_JAR=OFF
Expand Down

0 comments on commit a0373f1

Please sign in to comment.