Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 20 additions & 16 deletions .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,20 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
build: [linux, macos]
build: [linux, macos, linux-arm64]
include:
- build: linux
os: ubuntu-22.04
rust: stable
target: x86_64-unknown-linux-musl
- build: macos
os: macos-12
rust: stable
target: x86_64-apple-darwin
- build: linux
os: ubuntu-22.04
rust: stable
target: x86_64-unknown-linux-musl
- build: macos
os: macos-13
rust: stable
target: x86_64-apple-darwin
- build: linux-arm64
os: ubuntu-22.04-arm
rust: stable
target: aarch64-unknown-linux-musl
steps:
- name: Install Ubuntu tools
if: matrix.os == 'ubuntu-22.04'
Expand All @@ -32,10 +36,10 @@ jobs:
- name: Install Mac OS X tools
if: matrix.build == 'macos'
run: brew install coreutils

- name: Checkout sources
uses: actions/checkout@v2

- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
Expand All @@ -56,7 +60,7 @@ jobs:
run: |
tar -cjvf ./scriptisto-${{ matrix.target }}.tar.bz2 --directory=./target/${{ matrix.target }}/release scriptisto
sha256sum ./scriptisto-${{ matrix.target }}.tar.bz2

- name: Install tools from crates
if: matrix.build == 'linux'
uses: actions-rs/cargo@v1
Expand All @@ -65,7 +69,7 @@ jobs:
args: cargo-deb cargo-generate-rpm

- name: Copy to standard location
if: matrix.build == 'linux'
if: startsWith(matrix.build,'linux')
run: |
mkdir -p ./target/release
cp ./target/${{ matrix.target }}/release/scriptisto ./target/release/scriptisto
Expand All @@ -75,7 +79,7 @@ jobs:
run: |
cargo generate-rpm --target ${{ matrix.target }}
sha256sum ./target/${{ matrix.target }}/generate-rpm/*.rpm

- name: Build DEB
if: matrix.build == 'linux'
run: |
Expand All @@ -84,14 +88,14 @@ jobs:

- name: Release Linux
uses: softprops/action-gh-release@v1
if: matrix.build == 'linux' && startsWith(github.ref, 'refs/tags/')
if: startsWith(matrix.build,'linux') && startsWith(github.ref, 'refs/tags/')
with:
append_body: true
files: |
./scriptisto-${{ matrix.target }}.tar.bz2
./target/${{ matrix.target }}/debian/*.deb
./target/${{ matrix.target }}/generate-rpm/*.rpm

- name: Release Mac OS X
uses: softprops/action-gh-release@v1
if: matrix.build == 'macos' && startsWith(github.ref, 'refs/tags/')
Expand Down
Loading