diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6a7bd4b..335a64e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 \ No newline at end of file