Bump version #37
Workflow file for this run
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: Release | |
on: | |
push: | |
tags: | |
- "**" | |
jobs: | |
build: | |
strategy: | |
matrix: | |
target: [x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu] | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- if: matrix.target == 'aarch64-unknown-linux-gnu' | |
run: | | |
sudo dpkg --add-architecture arm64 | |
RELEASE="$(lsb_release --codename --short)" | |
sudo sed -i -r "s/^(deb|deb-src) /\1 [arch=amd64] /g" /etc/apt/sources.list | |
sudo tee /etc/apt/sources.list.d/arm64.list << EOF > /dev/null | |
deb [arch=arm64] http://ports.ubuntu.com/ $RELEASE main restricted universe multiverse | |
deb [arch=arm64] http://ports.ubuntu.com/ $RELEASE-updates main restricted universe multiverse | |
deb [arch=arm64] http://ports.ubuntu.com/ $RELEASE-backports main restricted universe multiverse | |
deb [arch=arm64] http://ports.ubuntu.com/ $RELEASE-security main restricted universe multiverse | |
EOF | |
sudo apt update | |
sudo apt install \ | |
gcc-aarch64-linux-gnu \ | |
libfreetype6-dev:arm64 \ | |
libfontconfig1-dev:arm64 | |
cat << EOF >> "$GITHUB_ENV" | |
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc | |
PKG_CONFIG=aarch64-linux-gnu-pkg-config | |
EOF | |
- run: cargo fetch --locked --target ${{ matrix.target }} | |
- run: cargo build --release --target ${{ matrix.target }} | |
- run: | | |
mkdir ./release | |
cp ./target/${{ matrix.target }}/release/figma-agent \ | |
./release/figma-agent-${{ matrix.target }} | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: release-${{ matrix.target }} | |
path: ./release/figma-agent-${{ matrix.target }} | |
release: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
pattern: release-* | |
path: ./release | |
merge-multiple: true | |
- uses: softprops/action-gh-release@v1 | |
with: | |
name: Figma Agent for Linux ${{ github.ref_name }} | |
files: ./release/figma-agent-* |