Skip to content

Commit

Permalink
Merge pull request #41 from sebastienrousseau/feat/ssg
Browse files Browse the repository at this point in the history
v0.0.10
  • Loading branch information
sebastienrousseau authored Apr 2, 2023
2 parents 294ddcb + cac0daf commit a419a8d
Show file tree
Hide file tree
Showing 60 changed files with 3,359 additions and 981 deletions.
73 changes: 73 additions & 0 deletions .github/workflows/aarch64-apple-darwin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: ❯ macOS build 🍎 (aarch64-apple-darwin)
# On push to the main branch, build the project on 64-bit macOS on Apple Silicon
on:
push:
branches: ["**"]
jobs:
# This job builds the project on 64-bit macOS on Apple Silicon
build:
name: ❯ build
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
strategy:
fail-fast: false
matrix:
rust-toolchain:
- stable
target:
# 64-bit macOS on Apple Silicon ✅ Tested
- aarch64-apple-darwin

include:
# Linux targets 🐧
- target: aarch64-apple-darwin
os: ubuntu-latest
cross: true
runs-on: ${{ matrix.os }}

steps:
# Check out the repository code
- name: Checkout sources
id: checkout
uses: actions/checkout@v3
with:
fetch-depth: 2

# Install the stable Rust toolchain
- name: Setup Rust
id: setup-rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
rustup default ${{ matrix.rust-toolchain }}
# Update the version number based on the Cargo.toml file
- name: Update version number
id: update-version
run: |
NEW_VERSION=$(grep version Cargo.toml | sed -n 2p | cut -d '"' -f 2)
echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV
shell: /bin/bash -e {0}

# Build the target
- name: Build
run: cargo build --release

# Upload the binary for the target
- name: Upload binary to GitHub Packages
uses: actions/upload-artifact@v3
with:
name: ssg-${{ matrix.target }}-v${{ env.VERSION }}
path: target/release/ssg

# Tar the binary for the target
- name: Tar files
run: tar -czvf ssg-${{ matrix.target }}-v${{ env.VERSION }}.tar.gz target/release/ssg

# Upload the tarball for the target
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: ssg-${{ matrix.target }}-v${{ env.VERSION }}
path: ssg-${{ matrix.target }}-v${{ env.VERSION }}.tar.gz
run: |
echo "Binary uploaded successfully for ${{ matrix.target }}. URL: ${{ steps.upload-artifact.outputs.artifact_url }}"
shell: /bin/bash -e {0}
73 changes: 73 additions & 0 deletions .github/workflows/aarch64-pc-windows-msvc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: ❯ Windows build 🪟 (aarch64-pc-windows-msvc)
# On push to the main branch, build the project on ARM64 Windows MSVC
on:
push:
branches: ["**"]
jobs:
# This job builds the project on ARM64 Windows MSVC
build:
name: ❯ build
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
strategy:
fail-fast: false
matrix:
rust-toolchain:
- stable
target:
# ARM64 Windows MSVC ✅ Tested
- aarch64-pc-windows-msvc

include:
# Windows target 🪟
- target: aarch64-pc-windows-msvc
os: ubuntu-latest
cross: true
runs-on: ${{ matrix.os }}

steps:
# Check out the repository code
- name: Checkout sources
id: checkout
uses: actions/checkout@v3
with:
fetch-depth: 2

# Install the stable Rust toolchain
- name: Setup Rust
id: setup-rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
rustup default ${{ matrix.rust-toolchain }}
# Update the version number based on the Cargo.toml file
- name: Update version number
id: update-version
run: |
NEW_VERSION=$(grep version Cargo.toml | sed -n 2p | cut -d '"' -f 2)
echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV
shell: /bin/bash -e {0}

# Build the target
- name: Build
run: cargo build --release

# Upload the binary for the target
- name: Upload binary to GitHub Packages
uses: actions/upload-artifact@v3
with:
name: ssg-${{ matrix.target }}-v${{ env.VERSION }}
path: target/release/ssg

# Tar the binary for the target
- name: Tar files
run: tar -czvf ssg-${{ matrix.target }}-v${{ env.VERSION }}.tar.gz target/release/ssg

# Upload the tarball for the target
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: ssg-${{ matrix.target }}-v${{ env.VERSION }}
path: ssg-${{ matrix.target }}-v${{ env.VERSION }}.tar.gz
run: |
echo "Binary uploaded successfully for ${{ matrix.target }}. URL: ${{ steps.upload-artifact.outputs.artifact_url }}"
shell: /bin/bash -e {0}
73 changes: 73 additions & 0 deletions .github/workflows/aarch64-unknown-linux-gnu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: ❯ Linux build 🐧 (aarch64-unknown-linux-gnu)
# On push to the main branch, build the project on Linux ARM64 Linux (kernel 4.1, glibc 2.17+) with GNU
on:
push:
branches: ["**"]
jobs:
# This job builds the project on Linux ARM64 Linux (kernel 4.1, glibc 2.17+) with GNU
build:
name: ❯ build
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
strategy:
fail-fast: false
matrix:
rust-toolchain:
- stable
target:
# ARM64 Linux (kernel 4.1, glibc 2.17+) ✅ Tested
- aarch64-unknown-linux-gnu

include:
# Linux targets 🐧
- target: aarch64-unknown-linux-gnu
os: ubuntu-latest
cross: true
runs-on: ${{ matrix.os }}

steps:
# Check out the repository code
- name: Checkout sources
id: checkout
uses: actions/checkout@v3
with:
fetch-depth: 2

# Install the stable Rust toolchain
- name: Setup Rust
id: setup-rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
rustup default ${{ matrix.rust-toolchain }}
# Update the version number based on the Cargo.toml file
- name: Update version number
id: update-version
run: |
NEW_VERSION=$(grep version Cargo.toml | sed -n 2p | cut -d '"' -f 2)
echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV
shell: /bin/bash -e {0}

# Build the target
- name: Build
run: cargo build --release

# Upload the binary for the target
- name: Upload binary to GitHub Packages
uses: actions/upload-artifact@v3
with:
name: ssg-${{ matrix.target }}-v${{ env.VERSION }}
path: target/release/ssg

# Tar the binary for the target
- name: Tar files
run: tar -czvf ssg-${{ matrix.target }}-v${{ env.VERSION }}.tar.gz target/release/ssg

# Upload the tarball for the target
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: ssg-${{ matrix.target }}-v${{ env.VERSION }}
path: ssg-${{ matrix.target }}-v${{ env.VERSION }}.tar.gz
run: |
echo "Binary uploaded successfully for ${{ matrix.target }}. URL: ${{ steps.upload-artifact.outputs.artifact_url }}"
shell: /bin/bash -e {0}
73 changes: 73 additions & 0 deletions .github/workflows/aarch64-unknown-linux-musl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: ❯ Linux build 🐧 (aarch64-unknown-linux-musl)
# On push to the main branch, build the project on Linux with MUSL (kernel 4.1, glibc 2.17+)
on:
push:
branches: ["**"]
jobs:
# This job builds the project on Linux with MUSL (kernel 4.1, glibc 2.17+)
build:
name: ❯ build
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
strategy:
fail-fast: false
matrix:
rust-toolchain:
- stable
target:
# ARM64 Linux with MUSL (kernel 4.1, glibc 2.17+) ✅ Tested
- aarch64-unknown-linux-musl

include:
# Linux targets 🐧
- target: aarch64-unknown-linux-musl
os: ubuntu-latest
cross: true
runs-on: ${{ matrix.os }}

steps:
# Check out the repository code
- name: Checkout sources
id: checkout
uses: actions/checkout@v3
with:
fetch-depth: 2

# Install the stable Rust toolchain
- name: Setup Rust
id: setup-rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
rustup default ${{ matrix.rust-toolchain }}
# Update the version number based on the Cargo.toml file
- name: Update version number
id: update-version
run: |
NEW_VERSION=$(grep version Cargo.toml | sed -n 2p | cut -d '"' -f 2)
echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV
shell: /bin/bash -e {0}

# Build the target
- name: Build
run: cargo build --release

# Upload the binary for the target
- name: Upload binary to GitHub Packages
uses: actions/upload-artifact@v3
with:
name: ssg-${{ matrix.target }}-v${{ env.VERSION }}
path: target/release/ssg

# Tar the binary for the target
- name: Tar files
run: tar -czvf ssg-${{ matrix.target }}-v${{ env.VERSION }}.tar.gz target/release/ssg

# Upload the tarball for the target
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: ssg-${{ matrix.target }}-v${{ env.VERSION }}
path: ssg-${{ matrix.target }}-v${{ env.VERSION }}.tar.gz
run: |
echo "Binary uploaded successfully for ${{ matrix.target }}. URL: ${{ steps.upload-artifact.outputs.artifact_url }}"
shell: /bin/bash -e {0}
73 changes: 73 additions & 0 deletions .github/workflows/arm-unknown-linux-gnueabi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# On push to the main branch, build the project on Linux ARMv6 Linux (kernel 3.2, glibc 2.17)
name: ❯ Linux build 🐧 (arm-unknown-linux-gnueabi)
on:
push:
branches: ["**"]
jobs:
# This job builds the project on Linux ARMv6 Linux (kernel 3.2, glibc 2.17)
build:
name: ❯ build
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
strategy:
fail-fast: false
matrix:
rust-toolchain:
- stable
target:
# ARMv6 Linux (kernel 3.2, glibc 2.17) ✅ Tested
- arm-unknown-linux-gnueabi

include:
# Linux targets 🐧
- target: arm-unknown-linux-gnueabi
os: ubuntu-latest
cross: true
runs-on: ${{ matrix.os }}

steps:
# Check out the repository code
- name: Checkout sources
id: checkout
uses: actions/checkout@v3
with:
fetch-depth: 2

# Install the stable Rust toolchain
- name: Setup Rust
id: setup-rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
rustup default ${{ matrix.rust-toolchain }}
# Update the version number based on the Cargo.toml file
- name: Update version number
id: update-version
run: |
NEW_VERSION=$(grep version Cargo.toml | sed -n 2p | cut -d '"' -f 2)
echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV
shell: /bin/bash -e {0}

# Build the target
- name: Build
run: cargo build --release

# Upload the binary for the target
- name: Upload binary to GitHub Packages
uses: actions/upload-artifact@v3
with:
name: ssg-${{ matrix.target }}-v${{ env.VERSION }}
path: target/release/ssg

# Tar the binary for the target
- name: Tar files
run: tar -czvf ssg-${{ matrix.target }}-v${{ env.VERSION }}.tar.gz target/release/ssg

# Upload the tarball for the target
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: ssg-${{ matrix.target }}-v${{ env.VERSION }}
path: ssg-${{ matrix.target }}-v${{ env.VERSION }}.tar.gz
run: |
echo "Binary uploaded successfully for ${{ matrix.target }}. URL: ${{ steps.upload-artifact.outputs.artifact_url }}"
shell: /bin/bash -e {0}
Loading

0 comments on commit a419a8d

Please sign in to comment.