set dev branch #92
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
name: Linux CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- 'dev' | |
# schedule: | |
# - cron: '45 3 * * *' | |
jobs: | |
build-release: | |
strategy: | |
matrix: | |
include: | |
- arch-name: x86_64-linux-gnu | |
os: ubuntu-latest | |
target: x86_64-unknown-linux-gnu | |
artifact: tsukimi | |
runs-on: ${{matrix.os}} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build ${{matrix.target}} | |
run: | | |
mkdir artifact | |
docker build -t tsukimi . | |
docker run -d --name tsukimi tsukimi | |
docker cp tsukimi:/usr/src/tsukimi/. artifact/ | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{matrix.artifact}}-${{matrix.arch-name}} | |
path: artifact/* | |
compression-level: 0 | |
overwrite: true | |
retention-days: 7 |