Bump web-sys from 0.3.72 to 0.3.76 in /aarch64-esr-web (#131) #153
This file contains 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: Package | |
on: | |
push: | |
branches: [main] | |
tags: ["*"] | |
env: | |
CARGO_TERM_COLOR: always | |
cargo-deb-version: 2.0.2 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
target: | |
- arm-unknown-linux-gnueabi | |
- armv7-unknown-linux-gnueabihf | |
- aarch64-unknown-linux-gnu | |
- x86_64-unknown-linux-gnu | |
include: | |
- target: arm-unknown-linux-gnueabi | |
binutils: binutils-arm-linux-gnueabi | |
- target: armv7-unknown-linux-gnueabihf | |
binutils: binutils-arm-linux-gnueabihf | |
- target: aarch64-unknown-linux-gnu | |
binutils: binutils-aarch64-linux-gnu | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: sudo apt-get update && sudo apt-get install ${{ matrix.binutils }} | |
- name: Toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
target: ${{ matrix.target }} | |
override: true | |
- name: Cache .cargo and target | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cargo/git | |
~/.cargo/registry | |
target | |
key: ${{ runner.os }}-${{ matrix.target }}-package-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Cache cargo-deb and cross | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cargo/bin/cargo-deb | |
~/.cargo/bin/cross | |
~/.cargo/.crates.toml | |
~/.cargo/.crates2.json | |
key: ${{ runner.os }}-cargo-bin-${{ env.cargo-deb-version }} | |
- name: Install cargo-deb | |
run: cargo install cargo-deb --version ${{ env.cargo-deb-version }} | |
- name: Cross build | |
uses: actions-rs/cargo@v1 | |
with: | |
use-cross: true | |
command: build | |
args: --release --target ${{ matrix.target }} | |
- name: Package | |
run: cargo deb --target ${{ matrix.target }} --no-build | |
- name: Upload package | |
uses: actions/upload-artifact@v4 | |
with: | |
name: debian-package-${{ matrix.target }} | |
path: target/${{ matrix.target }}/debian/ | |
release: | |
name: Draft release | |
runs-on: ubuntu-latest | |
needs: build | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') | |
steps: | |
- name: Download packages | |
uses: actions/download-artifact@v4 | |
- name: Parse tag for version | |
id: parse_tag | |
uses: actions-ecosystem/action-regex-match@v2 | |
with: | |
text: ${{ github.ref }} | |
regex: "^refs/tags/(.+)$" | |
- name: Create draft release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions. | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: ${{ steps.parse_tag.outputs.group1 }} | |
draft: true | |
prerelease: false | |
- name: Upload packages to release | |
uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: "debian-package-*/aarch64-esr-decoder_*.deb" | |
asset_content_type: application/vnd.debian.binary-package |