diff --git a/.github/workflows/assets.yml b/.github/workflows/assets.yml index 988213a..33ed71f 100644 --- a/.github/workflows/assets.yml +++ b/.github/workflows/assets.yml @@ -19,7 +19,6 @@ jobs: - build: linux os: ubuntu-latest target: x86_64-unknown-linux-gnu - - build: macos os: macos-latest target: x86_64-apple-darwin @@ -46,11 +45,7 @@ jobs: targets: ${{ matrix.target }} - name: Build - uses: actions-rs/cargo@v1 - with: - use-cross: true - command: build - args: --verbose --release --target ${{ matrix.target }} + run: cargo build --verbose --release --target ${{ matrix.target }} - name: Build binary shell: bash diff --git a/.github/workflows/test_assets.yml b/.github/workflows/test_assets.yml deleted file mode 100644 index 8ce3603..0000000 --- a/.github/workflows/test_assets.yml +++ /dev/null @@ -1,70 +0,0 @@ -name: Compile and release // Test - -on: - workflow_dispatch: - -permissions: - contents: write - -jobs: - build-and-upload: - name: Build and upload - runs-on: ${{ matrix.os }} - - strategy: - matrix: - include: - - build: linux - os: ubuntu-latest - target: x86_64-unknown-linux-gnu - - - build: macos - os: macos-latest - target: x86_64-apple-darwin - - - build: macos - os: macos-latest - target: aarch64-apple-darwin - - - build: windows - os: windows-latest - target: x86_64-pc-windows-msvc - - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Get the release version from the tag - shell: bash - run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV - - - name: Install Rust - uses: dtolnay/rust-toolchain@stable - with: - targets: ${{ matrix.target }} - - - name: Build - uses: actions-rs/cargo@v1 - with: - use-cross: true - command: build - args: --verbose --release --target ${{ matrix.target }} - - - name: Build binary - shell: bash - run: | - if [ "${{ matrix.os }}" = "windows-latest" ]; then - fname="target/${{ matrix.target }}/release/md-models-${{ matrix.target }}.exe" - mv target/${{ matrix.target }}/release/md-models.exe $fname - echo "ASSET=$fname" >> $GITHUB_ENV - else - fname="target/${{ matrix.target }}/release/md-models-${{ matrix.target }}" - mv target/${{ matrix.target }}/release/md-models $fname - echo "ASSET=$fname" >> $GITHUB_ENV - fi - - - name: Upload artifact - uses: actions/upload-artifact@v4 - with: - name: md-models-${{ matrix.os }} - path: ${{ env.ASSET }}