Skip to content

Commit

Permalink
Add windows target to GitHub action configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
dns13 committed Mar 5, 2024
1 parent 7b0471e commit a73fb84
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ jobs:
restore-keys: ${{ runner.os }}-cargo-
- name: Setup
run: |
apt-get update && apt-get install -y cmake
apt-get update
apt-get install -y cmake
- name: Build
run: |
cargo build --release
Expand All @@ -66,3 +67,36 @@ jobs:
path: |
target/release/bone_shell
LICENSE
x86_64-pc-windows-gnu:
runs-on: ubuntu-latest
container: rust:latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup cache
uses: actions/cache@v4
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Setup
run: |
apt-get update
apt-get install -y mingw-w64 cmake
rustup target add x86_64-pc-windows-gnu
- name: Build
run: |
cargo build --release --target=x86_64-pc-windows-gnu
- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: x84_64-windows
path: |
target/x86_64-pc-windows-gnu/release/bemos_s3uploader.exe
LICENSE

0 comments on commit a73fb84

Please sign in to comment.