Merge pull request #62 from Hzqkii/main #105
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Rust | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| release-win: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [windows-2022] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| submodules: recursive | |
| - uses: Swatinem/rust-cache@v2 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| - uses: msys2/setup-msys2@v2 | |
| with: | |
| msystem: UCRT64 | |
| update: true | |
| install: mingw-w64-clang-x86_64-clang | |
| - name: Set LIBCLANG_PATH | |
| run: echo "LIBCLANG_PATH=$((gcm clang).source -replace "clang.exe")" >> $env:GITHUB_ENV | |
| - name: Ship | |
| shell: pwsh | |
| run: ./.github/workflows/shipper.ps1 | |
| # - name: Compress binaries | |
| # uses: svenstaro/upx-action@v2 | |
| # with: | |
| # args: -9 | |
| # files: | | |
| # smoothie-rs-artifact/bin/smoothie*.exe | |
| # smoothie-rs-artifact/bin/vapoursynth64/plugins/*.dll | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: smoothie-rs-bin-windows | |
| path: ./smoothie-rs/ | |
| - name: Generate release tag | |
| id: tag | |
| run: echo "::set-output name=release_tag::Nightly_$(date +"%Y.%m.%d_%H-%M")" | |
| - uses: softprops/action-gh-release@v1 | |
| with: | |
| tag_name: ${{ steps.tag.outputs.release_tag }} | |
| fail_on_unmatched_files: true | |
| files: | | |
| ./smoothie-rs-nightly.zip |