Skip to content

Commit

Permalink
Add extensions CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jonpas committed Apr 18, 2022
1 parent 41529b6 commit f583fa8
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 4 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/extensions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Extensions

on:
push:
paths:
- 'extensions/**'
- '.github/workflows/extensions.yml'
branches:
- '*'
tags:
- 'v*.*.*'
workflow_dispatch:

jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
from: libapollo_client.so
to: _x64.so
- target: x86_64-pc-windows-msvc
os: windows-latest
from: apollo_client.dll
to: _x64.dll
- target: i686-pc-windows-msvc
os: windows-latest
from: apollo_client.dll
to: .dll
runs-on: ${{ matrix.os }}
steps:
- name: Checkout the source code
uses: actions/checkout@v3
- name: Install Rust Target
run: |
rustup target add ${{ matrix.target }}
- name: Build
run: cd extensions && cargo build --target ${{ matrix.target }} --lib --release --verbose
- name: Move
run: mkdir release && cp extensions/target/${{ matrix.target }}/release/${{ matrix.from }} release/tac_apollo_client${{ matrix.to }}
- uses: actions/upload-artifact@v3
with:
name: extensions-${{ github.sha }}
path: release
8 changes: 4 additions & 4 deletions hemtt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ authority = "{{prefix}}_{{version}}"

check = ["!check_release_os"]
prebuild = ["!compile_sqf"]
postbuild = ["!compile_sqf_cleanup"]
postbuild = ["!compile_sqf_cleanup", "!extensions"]
releasebuild = [
"@zip {{prefix}}_mods_{{version}}"
]
Expand Down Expand Up @@ -51,8 +51,8 @@ only_release = true
show_output = true

[scripts.extensions]
show_output = true
steps_windows = [
"echo Download extensions from GitHub Actions and add them to the release!"
]
steps_linux = [
]
only_release = true
show_output = true

0 comments on commit f583fa8

Please sign in to comment.