-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
- Loading branch information
Showing
5 changed files
with
109 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- trunk | ||
|
||
jobs: | ||
build: | ||
name: Build - ${{ matrix.platform.release_for }} | ||
runs-on: ${{ matrix.platform.os }} | ||
strategy: | ||
matrix: | ||
platform: | ||
- release_for: ARM64 Linux | ||
os: ubuntu-latest | ||
target: aarch64-unknown-linux-gnu | ||
bin: wiki-extractor | ||
name: wiki-extractor-gnu-linux-aarch64 | ||
- release_for: 32-bit MSVC | ||
os: windows-latest | ||
target: i686-pc-windows-msvc | ||
bin: wiki-extractor.exe | ||
name: wiki-extractor-windows-i686.exe | ||
- release_for: 32-bit Linux | ||
os: ubuntu-latest | ||
target: i686-unknown-linux-gnu | ||
bin: wiki-extractor | ||
name: wiki-extractor-gnu-linux-i686 | ||
- release_for: 64-bit macOS | ||
os: macos-latest | ||
target: x86_64-apple-darwin | ||
bin: wiki-extractor | ||
name: wiki-extractor-darwin-x86_64 | ||
- release_for: 64-bit MSVC | ||
os: windows-latest | ||
target: x86_64-pc-windows-msvc | ||
bin: wiki-extractor.exe | ||
name: wiki-extractor-windows-x86_64.exe | ||
- release_for: 64-bit Linux | ||
os: ubuntu-latest | ||
target: x86_64-unknown-linux-gnu | ||
bin: wiki-extractor | ||
name: wiki-extractor-gnu-linux-x86_64 | ||
- release_for: 64-bit FreeBSD | ||
os: ubuntu-latest | ||
target: x86_64-unknown-freebsd | ||
bin: wiki-extractor | ||
name: wiki-extractor-freebsd-x86_64 | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: nightly | ||
- uses: clechasseur/rs-cargo@v2 | ||
with: | ||
command: build | ||
args: --release --all-features | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.platform.name }} | ||
path: target/release/${{ matrix.platform.bin }} | ||
release: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
if: startsWith(github.ref, 'refs/tags/') | ||
|
||
steps: | ||
- name: Download All Artifacts | ||
uses: actions/download-artifact@v4 | ||
|
||
- name: Create GitHub Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: | | ||
./wiki-extractor-* |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Build"] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Download Artifacts | ||
uses: actions/download-artifact@v4 | ||
|
||
- name: Create GitHub Release | ||
id: create_release | ||
if: startsWith(github.ref, 'refs/tags/') | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: | | ||
./wiki-extractor-* |
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
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
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