Skip to content

Commit

Permalink
Support linux-aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpdp7 committed Aug 24, 2024
1 parent 4f5e1f7 commit d4ac16c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,25 +76,28 @@ jobs:
matrix:
runs-on:
- ubuntu-latest
arch:
- x86_64
- aarch64
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
target: x86_64-unknown-linux-musl
target: ${{ matrix.arch }}-unknown-linux-musl
- run: sudo apt install -y musl-tools
- uses: actions-rs/cargo@v1
with:
command: build
args: --release --target x86_64-unknown-linux-musl
args: --release --target ${{ matrix.arch }} -unknown-linux-musl
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-artifact@v1
with:
name: ubpkg-${{ matrix.runs-on }}
path: target/x86_64-unknown-linux-musl/release/ubpkg
name: ubpkg-${{ matrix.runs-on }}-${{ matrix.arch }}
path: target/${{ matrix.arch }} -unknown-linux-musl/release/ubpkg

build-release-mac:
needs: [check, test, fmt, clippy]
Expand Down Expand Up @@ -157,10 +160,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Download Linux build
- name: Download Linux x86_64 build
uses: actions/download-artifact@v1
with:
name: ubpkg-ubuntu-latest-x86_64
- name: Download Linux aarch64 build
uses: actions/download-artifact@v1
with:
name: ubpkg-ubuntu-latest
name: ubpkg-ubuntu-latest-aarch64
- name: Download macOS build
uses: actions/download-artifact@v1
with:
Expand All @@ -171,7 +178,8 @@ jobs:
name: ubpkg-windows-latest
- name: Create release
run: |
mv ubpkg-ubuntu-latest/ubpkg ubpkg-linux
mv ubpkg-ubuntu-latest-x86_64/ubpkg ubpkg-linux-x86_64
mv ubpkg-ubuntu-latest-aarch64/ubpkg ubpkg-linux-aarch64
mv ubpkg-macos-latest/ubpkg ubpkg-macos
mv ubpkg-windows-latest/ubpkg.exe ubpkg.exe
d=$(date "+%Y-%m-%d_%H%M")
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
### Installation

```
$ wget https://github.com/alexpdp7/ubpkg/releases/latest/download/ubpkg-linux -O ~/.local/bin/ubpkg # or some other directory in your $PATH you can write to
$ wget https://github.com/alexpdp7/ubpkg/releases/latest/download/ubpkg-linux-x86_64 -O ~/.local/bin/ubpkg # or some other directory in your $PATH you can write to
$ chmod +x ~/.local/bin/ubpkg
```

Expand Down

0 comments on commit d4ac16c

Please sign in to comment.