diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e331580..04dd1ae 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,7 +26,7 @@ on: jobs: create-release: name: create-release - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 # env: # Set to force version number, e.g., when no tag exists. # RELEASE_VERSION: TEST-0.0.0 @@ -73,38 +73,38 @@ jobs: build: [linux, linux-arm, macos, win-msvc, win-gnu, win32-msvc] include: - build: linux - os: ubuntu-18.04 + os: ubuntu-22.04 rust: stable target: x86_64-unknown-linux-musl - build: linux-arm - os: ubuntu-18.04 + os: ubuntu-22.04 rust: stable target: arm-unknown-linux-gnueabihf - build: macos - os: macos-latest + os: macos-12 rust: stable target: x86_64-apple-darwin - build: win-msvc - os: windows-2019 + os: windows-2022 rust: stable target: x86_64-pc-windows-msvc - build: win-gnu - os: windows-2019 + os: windows-2022 rust: stable-x86_64-gnu target: x86_64-pc-windows-gnu - build: win32-msvc - os: windows-2019 + os: windows-2022 rust: stable target: i686-pc-windows-msvc steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 1 - name: Install Rust - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} profile: minimal @@ -149,7 +149,7 @@ jobs: cp {README.md,LICENSE-APACHE,LICENSE-MIT} "$staging/" - if [ "${{ matrix.os }}" = "windows-2019" ]; then + if [ "${{ matrix.os }}" = "windows-2022" ]; then cp "target/${{ matrix.target }}/release/zet.exe" "$staging/" 7z a "$staging.zip" "$staging" echo "ASSET=$staging.zip" >> $GITHUB_ENV @@ -161,7 +161,7 @@ jobs: fi - name: Upload release archive - uses: actions/upload-release-asset@v1.0.1 + uses: actions/upload-release-asset@v1.0.2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: