diff --git a/.github/workflows/execute-release.yml b/.github/workflows/execute-release.yml index 68d1134d..62b06107 100644 --- a/.github/workflows/execute-release.yml +++ b/.github/workflows/execute-release.yml @@ -17,7 +17,7 @@ jobs: outputs: version: ${{ steps.release.outputs.release }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: semrel release id: semrel @@ -54,7 +54,7 @@ jobs: - name: Output release id: release - run: echo "::set-output name=release::${{ steps.semrel.outputs.version }}" + run: echo "release=${{ steps.semrel.outputs.version }}" >> $GITHUB_OUTPUT publish-linux-assets: runs-on: ubuntu-latest @@ -65,7 +65,7 @@ jobs: - { target: aarch64-unknown-linux-gnu, rpm-arch-shortname: aarch64, deb-arch-shortname: arm64, os: ubuntu-20.04, use-cross: true } - { target: x86_64-unknown-linux-gnu, rpm-arch-shortname: x86_64, deb-arch-shortname: amd64, os: ubuntu-20.04, use-cross: true } steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install protoc run: ./scripts/install_protoc_linux.sh @@ -77,14 +77,6 @@ jobs: aarch64-unknown-linux-gnu) sudo apt-get -y update ; sudo apt-get -y install gcc-aarch64-linux-gnu ;; esac - - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - target: ${{ matrix.architecture.target }} - override: true - profile: minimal # minimal component installation (ie, no documentation) - - name: Show version information (Rust, cargo, GCC) shell: bash run: | @@ -193,19 +185,11 @@ jobs: - { target: aarch64-apple-darwin, use-cross: true } steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install protoc run: ./scripts/install_protoc_osx.sh - - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - target: ${{ matrix.architecture.target }} - override: true - profile: minimal # minimal component installation (ie, no documentation) - - name: Show version information (Rust, cargo, GCC) shell: bash run: | @@ -253,7 +237,7 @@ jobs: outputs: msi_filename: ${{ steps.build_installer.outputs.asset_name }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install protoc run: choco install protoc @@ -263,12 +247,6 @@ jobs: with: python-version: "3.x" - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - components: rustfmt - override: true - - name: Show Cargo Version run: | cat Cargo.toml @@ -282,9 +260,9 @@ jobs: rustup target add x86_64-pc-windows-gnu cargo build --release --target x86_64-pc-windows-gnu - echo "::set-output name=momento_binary_path::.\target\x86_64-pc-windows-gnu\release\momento.exe" + echo "momento_binary_path=.\target\x86_64-pc-windows-gnu\release\momento.exe" >> $GITHUB_OUTPUT $distributableFile64Prefix = "momento-cli-$env:VERSION.windows_x64" - echo "::set-output name=distributable_file_prefix::$distributableFile64Prefix" + echo "distributable_file_prefix=$distributableFile64Prefix" >> $GITHUB_OUTPUT - name: Write client auth certificate file id: write_client_auth_cert @@ -365,8 +343,8 @@ jobs: $zipPath = ".\$zipFilename" Compress-Archive -LiteralPath $env:MOMENTO_BINARY_PATH -DestinationPath $zipPath - echo "::set-output name=asset_path::$zipPath" - echo "::set-output name=asset_name::$zipFilename" + echo "asset_path=$zipPath" >> $GITHUB_OUTPUT + echo "asset_name=$zipFilename" >> $GITHUB_OUTPUT - name: Add msbuild to PATH uses: microsoft/setup-msbuild@v1.1 @@ -384,8 +362,8 @@ jobs: $msiFilename = "$env:DISTRIBUTABLE_FILE_PREFIX.msi" $msiPath = ".\windows\installer\bin\Release\$msiFilename" - echo "::set-output name=asset_path::$msiPath" - echo "::set-output name=asset_name::$msiFilename" + echo "asset_path=$msiPath" >> $GITHUB_OUTPUT + echo "asset_name=$msiFilename" >> $GITHUB_OUTPUT - name: Sign installer env: @@ -415,8 +393,8 @@ jobs: $releaseId = $latestRelease | jq -r .id $ghAssetMsi = "https://uploads.github.com/repos/momentohq/momento-cli/releases/$releaseId/assets?name=$env:MSI_FILENAME" $ghAssetZip = "https://uploads.github.com/repos/momentohq/momento-cli/releases/$releaseId/assets?name=$env:ZIP_FILENAME" - echo "::set-output name=upload_url_msi::$ghAssetMsi" - echo "::set-output name=upload_url_zip::$ghAssetZip" + echo "upload_url_msi=$ghAssetMsi" >> $GITHUB_OUTPUT + echo "upload_url_zip=$ghAssetZip" >> $GITHUB_OUTPUT - name: Upload windows_x64 msi uses: actions/upload-release-asset@v1 @@ -492,7 +470,7 @@ jobs: MSI_FILENAME: ${{ needs.publish-windows-assets.outputs.msi_filename }} run: | $installerUrl = "https://github.com/momentohq/momento-cli/releases/download/v$env:VERSION/$env:MSI_FILENAME" - echo "::set-output name=installer_url::$installerUrl" + echo "installer_url=$installerUrl" >> $GITHUB_OUTPUT - name: Open PR on WinGet env: @@ -507,7 +485,7 @@ jobs: steps: - name: Check out homebrew-tap - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 repository: momentohq/homebrew-tap diff --git a/.github/workflows/on-pull-request.yml b/.github/workflows/on-pull-request.yml index 878deb65..489db251 100644 --- a/.github/workflows/on-pull-request.yml +++ b/.github/workflows/on-pull-request.yml @@ -13,7 +13,7 @@ jobs: name: Style & Lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install protoc run: ./scripts/install_protoc_linux.sh @@ -31,17 +31,11 @@ jobs: max-parallel: 1 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install protoc run: ./scripts/install_protoc_linux.sh - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - components: rustfmt - override: true - - uses: Swatinem/rust-cache@v2 - name: Build @@ -53,15 +47,10 @@ jobs: build-windows: runs-on: windows-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install protoc run: choco install protoc - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - components: rustfmt - override: true - name: Build run: cargo build --verbose diff --git a/.github/workflows/on-push-to-main.yml b/.github/workflows/on-push-to-main.yml index 758da355..b4ab0835 100644 --- a/.github/workflows/on-push-to-main.yml +++ b/.github/workflows/on-push-to-main.yml @@ -13,7 +13,7 @@ jobs: name: Style & Lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install protoc run: ./scripts/install_protoc_linux.sh @@ -29,16 +29,11 @@ jobs: max-parallel: 1 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install protoc run: ./scripts/install_protoc_linux.sh - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - components: rustfmt - override: true - name: Build run: cargo build --verbose @@ -48,16 +43,11 @@ jobs: build-windows: runs-on: windows-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install protoc run: choco install protoc - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - components: rustfmt - override: true - name: Build run: cargo build --verbose