-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
84 changed files
with
1,460 additions
and
6,557 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 |
---|---|---|
|
@@ -21,38 +21,26 @@ jobs: | |
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Get Versions | ||
- name: Install deps | ||
run: | | ||
source VERSION | ||
echo "::set-output name=boost_version::${BOOST_VERSION}" | ||
id: versions | ||
- name: Cache Boost ${{ steps.versions.outputs.boost_version }} | ||
id: cache-boost | ||
uses: actions/cache@v2 | ||
with: | ||
path: _cache/boost | ||
key: ${{ matrix.name }}-boost-${{ steps.versions.outputs.boost_version }}.tar.gz.v2 | ||
- run: ./build.sh --no-tty --no-mount --package ${{ matrix.name }} | ||
working-directory: build | ||
timeout-minutes: 120 | ||
- name: Output package name | ||
DEBIAN_FRONTEND=noninteractive sudo apt-get -y install libva-dev libdrm-dev | ||
- run: python3 run.py ${{ matrix.name }} --package | ||
- name: Get package name | ||
shell: bash | ||
run: | | ||
source VERSION | ||
echo "PACKAGE_NAME=zakuro-${ZAKURO_VERSION}_${{ matrix.name }}.tar.gz" >> ${{ matrix.name }}.env | ||
echo "CONTENT_TYPE=application/gzip" >> ${{ matrix.name }}.env | ||
echo "::set-output name=name::zakuro-${ZAKURO_VERSION}_${{ matrix.name }}.tar.gz" | ||
source _package/${{ matrix.name }}/release/zakuro.env | ||
echo "::set-output name=name::${PACKAGE_NAME}" | ||
id: package_name | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v1 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ steps.package_name.outputs.name }} | ||
path: _package/${{ steps.package_name.outputs.name }} | ||
path: _package/${{ matrix.name }}/release/${{ steps.package_name.outputs.name }} | ||
- name: Upload Environment | ||
uses: actions/upload-artifact@v1 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ matrix.name }}.env | ||
path: ${{ matrix.name }}.env | ||
path: _package/${{ matrix.name }}/release/zakuro.env | ||
create-release: | ||
name: Create Release | ||
if: contains(github.ref, 'tags/202') | ||
|
@@ -62,7 +50,7 @@ jobs: | |
steps: | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1.0.0 | ||
uses: actions/create-release@v1.1.4 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
|
@@ -74,7 +62,7 @@ jobs: | |
shell: bash | ||
run: echo "UPLOAD_URL='${{ steps.create_release.outputs.upload_url }}'" > create-release.env | ||
- name: Upload create-release Environment | ||
uses: actions/upload-artifact@v1 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: create-release.env | ||
path: create-release.env | ||
|
@@ -89,26 +77,29 @@ jobs: | |
name: | ||
- ubuntu-20.04_x86_64 | ||
steps: | ||
- uses: actions/download-artifact@v1 | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: ${{ matrix.name }}.env | ||
- uses: actions/download-artifact@v1 | ||
path: ${{ matrix.name }}.env | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: create-release.env | ||
path: create-release.env | ||
- name: Env to output | ||
shell: bash | ||
run: | | ||
source ${{ matrix.name }}.env/${{ matrix.name }}.env | ||
source ${{ matrix.name }}.env/zakuro.env | ||
source create-release.env/create-release.env | ||
echo "::set-output name=package_name::$PACKAGE_NAME" | ||
echo "::set-output name=content_type::$CONTENT_TYPE" | ||
echo "::set-output name=upload_url::$UPLOAD_URL" | ||
id: env | ||
- uses: actions/download-artifact@v1 | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: ${{ steps.env.outputs.package_name }} | ||
path: ${{ steps.env.outputs.package_name }} | ||
- name: Upload ${{ matrix.name }} Release Asset | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].2 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
|
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
Oops, something went wrong.